Closed BenjaminAmos closed 2 years ago
With #588 merged this is partially obsolete, but the additional test screen is new and the old one moved. @BenjaminAmos want to redo that setup real quick or apply anything else left from this PR? No rush of course :-)
The new test screens should probably go in a separate module and all the other changes in this PR merged as part of #588, so I'm going to close this for now.
Description
This pull request adds the
KeyActivatedButton
andUIWarnButton
widgets to mimic the UI behaviour of the pre-existingSolUiControl
buttons.KeyActivatedButton
widget will activate when a key is pressed. If the key is held, then it will act the same as if a left-mouse button was holding it down.UIWarnButton
can flash an orange colour to notify the user that an event has occured, such as when new items are present in the inventory. It is also used in the tutorial to indicate which buttons to click on.The pull request also adds a separate button disabled texture (previously missing) and moves the MigTestScreen into a seperate test screens package.![image](https://user-images.githubusercontent.com/24301287/132127386-f4c54049-a398-4ea6-81f8-5a190edb582a.png)
Testing
F1
showNUIScreen engine:solButtonsTestScreen
I
button should be flashing orangeNotes