mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Fix editor one-click icons not showing.
This commit is contained in:
parent
71a9948157
commit
e407f55fbf
16 changed files with 56 additions and 23 deletions
|
|
@ -907,8 +907,12 @@ bool EditorExportPlatformWindows::poll_export() {
|
|||
return menu_options != prev;
|
||||
}
|
||||
|
||||
Ref<ImageTexture> EditorExportPlatformWindows::get_option_icon(int p_index) const {
|
||||
return p_index == 1 ? stop_icon : EditorExportPlatform::get_option_icon(p_index);
|
||||
Ref<Texture2D> EditorExportPlatformWindows::get_option_icon(int p_index) const {
|
||||
if (p_index == 1) {
|
||||
return stop_icon;
|
||||
} else {
|
||||
return EditorExportPlatform::get_option_icon(p_index);
|
||||
}
|
||||
}
|
||||
|
||||
int EditorExportPlatformWindows::get_options_count() const {
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ public:
|
|||
|
||||
virtual Ref<Texture2D> get_run_icon() const override;
|
||||
virtual bool poll_export() override;
|
||||
virtual Ref<ImageTexture> get_option_icon(int p_index) const override;
|
||||
virtual Ref<Texture2D> get_option_icon(int p_index) const override;
|
||||
virtual int get_options_count() const override;
|
||||
virtual String get_option_label(int p_index) const override;
|
||||
virtual String get_option_tooltip(int p_index) const override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue