-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Mainman002/Gui_v2
Gui v2
- Loading branch information
Showing
23 changed files
with
1,004 additions
and
482 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
extends VSlider | ||
|
||
func _ready(): | ||
Events._initialize_nodes_list(name, get_path()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
extends Button | ||
|
||
export (NodePath) var PanelNode | ||
export (String) var PanelNode = "FilesPanel" | ||
|
||
onready var FuncManager = get_node("/root/MainMenu/FunctionController") | ||
|
||
func _ready(): | ||
connect("pressed", self, "_showPanel") | ||
|
||
func _showPanel(): | ||
get_node(PanelNode).visible = true | ||
get_node(Events.nodes[PanelNode].Path).visible = true | ||
FuncManager.panelOpen = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 18 additions & 11 deletions
29
Project Files/Assets/Scripts/Buttons/visibilityToggleBTN.gd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,31 @@ | ||
extends TextureButton | ||
|
||
export (bool) var isVisible | ||
export (NodePath) var VirtualGrid | ||
export (bool) var notVisible | ||
#export (NodePath) var VirtualGrid | ||
#export (Texture) var sprite_normal | ||
|
||
var visibleToggled | ||
|
||
onready var FuncManager = get_node("/root/MainMenu/FunctionController") | ||
|
||
func _ready(): | ||
connect("pressed", self, "_pressed") | ||
visibleToggled = isVisible | ||
# texture_normal = sprite_normal | ||
|
||
yield(get_tree(), "idle_frame") | ||
_start_Check() | ||
|
||
|
||
func _start_Check(): | ||
pressed = notVisible | ||
visibleToggled = notVisible | ||
FuncManager.grid_showing = notVisible | ||
FuncManager._grid_Update() | ||
get_node(Events.nodes["VirtualGrid"].Path).visible = FuncManager.grid_showing | ||
|
||
func _pressed(): | ||
if FuncManager.panelOpen == false: | ||
pressed = FuncManager.grid_showing | ||
FuncManager._grid_Update() | ||
get_node(VirtualGrid).visible = FuncManager.grid_showing | ||
# if visibleToggled == true: | ||
# visibleToggled = false | ||
# else: | ||
# visibleToggled = true | ||
|
||
|
||
# get_node(Grid).visible = FuncManager.grid_showing | ||
get_node(Events.nodes["VirtualGrid"].Path).visible = FuncManager.grid_showing | ||
|
Oops, something went wrong.