mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
ui button fixes
This commit is contained in:
1 parent
31b1d90d5d
commit
5b4633e54c
2 files changed
+5
-1
No files matched your search
@@ -18,6 +18,7 @@ public class MyFlatButton : MonoBehaviour
|
||||
var panel = UIRoot.instance.uiGame.dysonEditor.controlPanel.hierarchy.layerPanel;
|
||||
var go = Instantiate(panel.layerButtons[0].gameObject);
|
||||
var btn = go.GetComponent<UIButton>();
|
||||
go.GetComponent<Image>().sprite = panel.buttonDefaultSprite;
|
||||
btn.gameObject.name = "my-flatbutton";
|
||||
btn.highlighted = false;
|
||||
var img = btn.GetComponent<Image>();
|
||||
|
||||
Reference in new issue
Block a user