changed label and added switching back to first entry

This commit is contained in:
Chr1Z93 2024-01-16 00:11:02 +01:00
parent 037bd6b21e
commit d100980dfe
2 changed files with 4 additions and 1 deletions

View File

@ -1231,6 +1231,9 @@ function playermatRemovalSelected(player, selectedIndex, id)
-- info dialog that it is already deleted -- info dialog that it is already deleted
player.showInfoDialog(matColor .. "'s playermat has already been removed.") player.showInfoDialog(matColor .. "'s playermat has already been removed.")
end end
-- set selected value back to first option
UI.setAttribute(id, "value", 0)
end end
-- removes a playermat and all related objects from play -- removes a playermat and all related objects from play

View File

@ -309,7 +309,7 @@
<Panel class="doubleColumn-wrapper"> <Panel class="doubleColumn-wrapper">
<Dropdown id="removePlayermat" <Dropdown id="removePlayermat"
onValueChanged="playermatRemovalSelected(selectedIndex)"> onValueChanged="playermatRemovalSelected(selectedIndex)">
<Option>None</Option> <Option>Click to select</Option>
<Option>1: White</Option> <Option>1: White</Option>
<Option>2: Orange</Option> <Option>2: Orange</Option>
<Option>3: Green</Option> <Option>3: Green</Option>