private void openIconPicker() { IconPickerDialog dlg = new IconPickerDialog("Select Icon", new Vector2(Button.MAX_TEX_WIDTH, Button.MAX_TEX_HEIGHT), (texturePath) => { iconPickerCommand.TexturePath = texturePath; }); dlg.OnDestroy += () => { iconPickerCommand.Enabled = true; }; iconPickerCommand.Enabled = false; }
private void openIconPicker() { // dictionary.cfg // // #TOOLBAR_UI_OK = "OK" // #TOOLBAR_UI_CANCEL = "Cancel" // #TOOLBAR_UI_FOLDER_SETTINGS = "Folder Settings" // #TOOLBAR_UI_BUTTON_ICON = "Button icon:" // #TOOLBAR_UI_BUTTON_TOOLTIP_TEXT= "Button tooltip text:" // #TOOLBAR_UI_SELECT_ICON = "Select Icon" // // eg : Localizer.Format("#ID") IconPickerDialog dlg = new IconPickerDialog(Localizer.Format("#TOOLBAR_UI_SELECT_ICON"), new Vector2(Button.MAX_TEX_WIDTH, Button.MAX_TEX_HEIGHT), (texturePath) => { iconPickerCommand.TexturePath = texturePath; }); dlg.OnDestroy += () => { iconPickerCommand.Enabled = true; }; iconPickerCommand.Enabled = false; }