mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
Fixed problems in Material Maker addon for Godot
Icon and settings taken from the project
This commit is contained in:
parent
e4aebb9b1f
commit
9bdcb73411
BIN
addons/material_maker/icons/icon.png
Normal file
BIN
addons/material_maker/icons/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.7 KiB |
@ -30,6 +30,7 @@ const MENU = [
|
|||||||
signal quit
|
signal quit
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
|
if !Engine.editor_hint:
|
||||||
OS.set_window_title(ProjectSettings.get_setting("application/config/name")+" v"+ProjectSettings.get_setting("application/config/release"))
|
OS.set_window_title(ProjectSettings.get_setting("application/config/name")+" v"+ProjectSettings.get_setting("application/config/release"))
|
||||||
for m in $VBoxContainer/Menu.get_children():
|
for m in $VBoxContainer/Menu.get_children():
|
||||||
var menu = m.get_popup()
|
var menu = m.get_popup()
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
|
tool
|
||||||
extends WindowDialog
|
extends WindowDialog
|
||||||
|
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
|
if Engine.editor_hint:
|
||||||
|
$VBoxContainer/VBoxContainer1/ApplicationName.text = "Material Maker"
|
||||||
|
else:
|
||||||
$VBoxContainer/VBoxContainer1/ApplicationName.text = ProjectSettings.get_setting("application/config/name")+" v"+ProjectSettings.get_setting("application/config/release")
|
$VBoxContainer/VBoxContainer1/ApplicationName.text = ProjectSettings.get_setting("application/config/name")+" v"+ProjectSettings.get_setting("application/config/release")
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[gd_scene load_steps=8 format=2]
|
[gd_scene load_steps=8 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://addons/material_maker/widgets/about.gd" type="Script" id=1]
|
[ext_resource path="res://addons/material_maker/widgets/about.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://icon.png" type="Texture" id=2]
|
[ext_resource path="res://addons/material_maker/icons/icon.png" type="Texture" id=2]
|
||||||
[ext_resource path="res://addons/material_maker/widgets/icon.png" type="Texture" id=3]
|
[ext_resource path="res://addons/material_maker/widgets/icon.png" type="Texture" id=3]
|
||||||
[ext_resource path="res://addons/material_maker/widgets/facebook.png" type="Texture" id=4]
|
[ext_resource path="res://addons/material_maker/widgets/facebook.png" type="Texture" id=4]
|
||||||
[ext_resource path="res://addons/material_maker/widgets/twitter.png" type="Texture" id=5]
|
[ext_resource path="res://addons/material_maker/widgets/twitter.png" type="Texture" id=5]
|
||||||
@ -48,8 +48,8 @@ anchor_left = 0.0
|
|||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_left = 41.0
|
margin_left = 28.0
|
||||||
margin_right = 110.0
|
margin_right = 123.0
|
||||||
margin_bottom = 82.0
|
margin_bottom = 82.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
@ -66,7 +66,7 @@ anchor_left = 0.0
|
|||||||
anchor_top = 0.0
|
anchor_top = 0.0
|
||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_right = 69.0
|
margin_right = 95.0
|
||||||
margin_bottom = 64.0
|
margin_bottom = 64.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
@ -84,7 +84,7 @@ anchor_top = 0.0
|
|||||||
anchor_right = 0.0
|
anchor_right = 0.0
|
||||||
anchor_bottom = 0.0
|
anchor_bottom = 0.0
|
||||||
margin_top = 68.0
|
margin_top = 68.0
|
||||||
margin_right = 69.0
|
margin_right = 95.0
|
||||||
margin_bottom = 82.0
|
margin_bottom = 82.0
|
||||||
rect_pivot_offset = Vector2( 0, 0 )
|
rect_pivot_offset = Vector2( 0, 0 )
|
||||||
rect_clip_content = false
|
rect_clip_content = false
|
||||||
@ -92,7 +92,7 @@ mouse_filter = 2
|
|||||||
mouse_default_cursor_shape = 0
|
mouse_default_cursor_shape = 0
|
||||||
size_flags_horizontal = 1
|
size_flags_horizontal = 1
|
||||||
size_flags_vertical = 4
|
size_flags_vertical = 4
|
||||||
text = "APP_NAME"
|
text = "Material Maker"
|
||||||
align = 1
|
align = 1
|
||||||
percent_visible = 1.0
|
percent_visible = 1.0
|
||||||
lines_skipped = 0
|
lines_skipped = 0
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user