Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
51 additions
and
0 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
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 |
---|---|---|
|
@@ -16,6 +16,33 @@ | |
|
||
<windowclass name="ps_parcelitem" merge="join"> | ||
<sheetdata> | ||
<hidden_record_isidentified name="isidentified"> | ||
<class>item</class> | ||
<script> | ||
function onInit() | ||
if super.onInit then | ||
super.onInit(); | ||
end | ||
|
||
OptionsManager.registerCallback("PS-NONID-NAME", hideOrShowID); | ||
This comment has been minimized.
Sorry, something went wrong. |
||
hideOrShowID(); | ||
end | ||
|
||
function hideOrShowID() | ||
if super then | ||
super.ignorehost = (OptionsManager.isOption("PS-NONID-NAME", "on") and Session.IsHost) | ||
This comment has been minimized.
Sorry, something went wrong.
bmos
Author
Collaborator
|
||
if super.onValueChanged then | ||
super.onValueChanged() | ||
end | ||
end | ||
end | ||
|
||
function onClose() | ||
OptionsManager.unregisterCallback("PS-NONID-NAME", hideOrShowID); | ||
This comment has been minimized.
Sorry, something went wrong.
bmos
Author
Collaborator
|
||
end | ||
</script> | ||
</hidden_record_isidentified> | ||
|
||
<button_record_isidentified name="identifyitem" insertbefore="assign"> | ||
<anchored width="20" height="20"> | ||
<top offset="2" /> | ||
|
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,10 @@ | ||
-- | ||
-- Please see the LICENSE.md file included with this distribution for attribution and copyright information. | ||
-- | ||
|
||
-- search | ||
|
||
function onInit() | ||
OptionsManager.registerOption2('PS-NONID-NAME', false, 'option_header_game', 'opt_lab_ps_nonidname', 'option_entry_cycler', | ||
This comment has been minimized.
Sorry, something went wrong. |
||
{ labels = 'option_val_on', values = 'on', baselabel = 'option_val_off', baseval = 'off', default = 'off'}) | ||
end |
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,8 @@ | ||
<?xml version="1.0" encoding="iso-8859-1"?> | ||
|
||
<!-- Please see the LICENSE.md file included with this distribution for attribution and copyright information --> | ||
|
||
<root> | ||
<!-- options titles --> | ||
<string name="opt_lab_ps_nonidname">GM: Un-ID'd Names on PS</string> | ||
</root> |
calls hideOrShowID function when option is changed