-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added href getter datum. Returns either what you want or null.
- Moved byjax callback processing to JS part. - Disabled exosuits verbs from showing when RMButtoning. - Added radios to exosuits. Setting can be found in 'Electronics' menu. - Exosuit maintenance can be initiated even if it's occupied. The pilot must permit maintenance through 'Permissions & Logging' - 'Permit maintenance protocols'. For combat exosuits it's disabled by default. While in maintenance mode, exosuit can't move or use equipment. - Nerfed EMP effect on mechs. - Fixed build_path for atmospheric monitor circuitboard design - Bugfixing and bugmaking. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2343 316c924e-a436-60f5-8080-3fe189b3f50e
- Loading branch information
panurgomatic
committed
Oct 11, 2011
1 parent
41e2684
commit 58bef9a
Showing
14 changed files
with
313 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/datum/topic_input | ||
var/href | ||
var/list/href_list | ||
|
||
New(thref,list/thref_list) | ||
href = thref | ||
href_list = thref_list.Copy() | ||
return | ||
|
||
proc/get(i) | ||
return listgetindex(href_list,i) | ||
|
||
proc/getAndLocate(i) | ||
var/t = get(i) | ||
if(t) | ||
t = locate(t) | ||
return t || null | ||
|
||
proc/getNum(i) | ||
var/t = get(i) | ||
if(t) | ||
t = text2num(t) | ||
return isnum(t) ? t : null | ||
|
||
proc/getObj(i) | ||
var/t = getAndLocate(i) | ||
return isobj(t) ? t : null | ||
|
||
proc/getMob(i) | ||
var/t = getAndLocate(i) | ||
return ismob(t) ? t : null | ||
|
||
proc/getTurf(i) | ||
var/t = getAndLocate(i) | ||
return isturf(t) ? t : null | ||
|
||
proc/getAtom(i) | ||
return getType(i,/atom) | ||
|
||
proc/getArea(i) | ||
var/t = getAndLocate(i) | ||
return isarea(t) ? t : null | ||
|
||
proc/getStr(i)//params should always be text, but... | ||
var/t = get(i) | ||
return istext(t) ? t : null | ||
|
||
proc/getType(i,type) | ||
var/t = getAndLocate(i) | ||
return istype(t,type) ? t : null | ||
|
||
proc/getPath(i) | ||
var/t = get(i) | ||
if(t) | ||
t = text2path(t) | ||
return ispath(t) ? t : null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.