File tree Expand file tree Collapse file tree
gui/options/option-elements Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77### Added
88
9- - Added ` button: sc.ButtonGui ` to ` onPress ` of ` BUTTON ` option
109- Added new mod option field ` noNamePadding ` that disables the padding after the option name
1110- ` INPUT_FIELD ` can now have a name
1211
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ modmanager.gui.Options.BUTTON = ig.GuiElementBase.extend({
2121 this . button = new sc . ButtonGui ( option . name )
2222 if ( option . onPress ) {
2323 this . button . onButtonPress = ( ) => {
24- option . onPress . call ( option , this . button )
24+ option . onPress . call ( option )
2525 }
2626 }
2727
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ interface INFO {
106106
107107interface BUTTON {
108108 type : 'BUTTON'
109- onPress : ( this : GuiOption , button : sc . ButtonGui ) => void
109+ onPress : ( this : GuiOption ) => void
110110}
111111
112112interface JSON_DATA extends OptionChangeable {
You can’t perform that action at this time.
0 commit comments