-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more work done on script feature cropped creature icons so they'd be easier to work with
- Loading branch information
1 parent
bca451f
commit c2d2eeb
Showing
212 changed files
with
1,463 additions
and
1,094 deletions.
There are no files selected for viewing
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+88.6 KB
ComparisonImages/stones/GOG dungeon keeper has no stones when dug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions
35
ComparisonImages/stones/GOG dungeon keeper has no stones when dug.png.import
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,35 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="StreamTexture" | ||
path="res://.import/GOG dungeon keeper has no stones when dug.png-82268bed7ba54024b76567d2d26a27f0.stex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://ComparisonImages/stones/GOG dungeon keeper has no stones when dug.png" | ||
dest_files=[ "res://.import/GOG dungeon keeper has no stones when dug.png-82268bed7ba54024b76567d2d26a27f0.stex" ] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_mode=0 | ||
compress/bptc_ldr=0 | ||
compress/normal_map=0 | ||
flags/repeat=0 | ||
flags/filter=false | ||
flags/mipmaps=true | ||
flags/anisotropic=true | ||
flags/srgb=2 | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/HDR_as_SRGB=false | ||
process/invert_color=false | ||
process/normal_map_invert_y=false | ||
stream=false | ||
size_limit=0 | ||
detect_3d=false | ||
svg/scale=1.0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions
35
ComparisonImages/stones/officialeditor dirt path has stones.png.import
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,35 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="StreamTexture" | ||
path="res://.import/officialeditor dirt path has stones.png-2821d7571658d249205b498fee181f8a.stex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://ComparisonImages/stones/officialeditor dirt path has stones.png" | ||
dest_files=[ "res://.import/officialeditor dirt path has stones.png-2821d7571658d249205b498fee181f8a.stex" ] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_mode=0 | ||
compress/bptc_ldr=0 | ||
compress/normal_map=0 | ||
flags/repeat=0 | ||
flags/filter=false | ||
flags/mipmaps=true | ||
flags/anisotropic=true | ||
flags/srgb=2 | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/HDR_as_SRGB=false | ||
process/invert_color=false | ||
process/normal_map_invert_y=false | ||
stream=false | ||
size_limit=0 | ||
detect_3d=false | ||
svg/scale=1.0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,86 @@ | ||
extends VBoxContainer | ||
|
||
var availabilityState setget set_availability_state | ||
|
||
enum { | ||
OPTION_START | ||
OPTION_RESEARCH | ||
OPTION_DISABLED | ||
ENABLED | ||
DISABLED | ||
} | ||
|
||
func _ready(): | ||
connect("mouse_entered", self, "_on_available_button_mouse_entered") | ||
connect("mouse_exited", self, "_on_available_button_mouse_exited") | ||
|
||
func _on_available_button_mouse_entered(): | ||
$TextureRect/Highlight.color.a8 = 16 | ||
$Label/Highlight.color.a8 = 16 | ||
$LineEdit/Highlight.color.a8 = 16 | ||
|
||
func _on_available_button_mouse_exited(): | ||
$TextureRect/Highlight.color.a8 = 0 | ||
$Label/Highlight.color.a8 = 0 | ||
$LineEdit/Highlight.color.a8 = 0 | ||
|
||
func _on_AvailableButton_gui_input(event): | ||
if event is InputEventMouseButton: | ||
if event.button_index == BUTTON_LEFT and event.pressed: | ||
_on_button_pressed() | ||
|
||
func _on_button_pressed(): | ||
match availabilityState: | ||
OPTION_START: set_availability_state(OPTION_RESEARCH) | ||
OPTION_RESEARCH: set_availability_state(OPTION_DISABLED) | ||
OPTION_DISABLED: set_availability_state(OPTION_START) | ||
DISABLED: set_availability_state(ENABLED) | ||
ENABLED: set_availability_state(DISABLED) | ||
|
||
|
||
func set_availability_state(setVal): | ||
availabilityState = setVal | ||
match availabilityState: | ||
OPTION_START: | ||
get_node("Label").text = "Start" | ||
modulate = Color(1,1,1,1) | ||
get_node("Label/ColorRect").color = Color("#46455c") | ||
get_node("TextureRect/ColorRect").color = Color("#383745") | ||
OPTION_RESEARCH: | ||
get_node("Label").text = "Research" | ||
modulate = Color(1,1,1,1) | ||
get_node("Label/ColorRect").color = Color("#5c3b5c") | ||
get_node("TextureRect/ColorRect").color = Color("#3f3745") | ||
OPTION_DISABLED: | ||
get_node("Label").text = "Disabled" | ||
modulate = Color(1,1,1,0.25) | ||
get_node("Label/ColorRect").color = Color("#000000") | ||
get_node("TextureRect/ColorRect").color = Color("#000000") | ||
ENABLED: | ||
get_node("Label").text = "Enabled" | ||
modulate = Color(1,1,1,1) | ||
get_node("Label/ColorRect").color = Color("#46455c") | ||
get_node("TextureRect/ColorRect").color = Color("#383745") | ||
DISABLED: | ||
get_node("Label").text = "Disabled" | ||
modulate = Color(1,1,1,0.25) | ||
get_node("Label/ColorRect").color = Color("#000000") | ||
get_node("TextureRect/ColorRect").color = Color("#000000") | ||
|
||
func _on_LineEdit_text_changed(new_text): | ||
var integer = int(new_text) | ||
if integer > 0: | ||
modulate = Color(1,1,1,1) | ||
get_node("LineEdit/ColorRect").color = Color("#46455c") | ||
get_node("TextureRect/ColorRect").color = Color("#383745") | ||
else: | ||
modulate = Color(1,1,1,0.25) | ||
get_node("LineEdit/ColorRect").color = Color("#000000") | ||
get_node("TextureRect/ColorRect").color = Color("#000000") | ||
|
||
func get_integer(): | ||
return int($LineEdit.text) | ||
|
||
|
||
func _on_LineEdit_focus_exited(): | ||
$LineEdit.deselect() |
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,21 +1,124 @@ | ||
[gd_scene format=2] | ||
[gd_scene load_steps=4 format=2] | ||
|
||
[node name="AvailableButton" type="TextureButton"] | ||
[ext_resource path="res://Art/ActionPoint.png" type="Texture" id=1] | ||
[ext_resource path="res://Scenes/AvailableButton.gd" type="Script" id=2] | ||
|
||
[sub_resource type="StyleBoxFlat" id=1] | ||
bg_color = Color( 0.6, 0.6, 0.6, 0 ) | ||
|
||
[node name="AvailableButton" type="VBoxContainer"] | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
mouse_filter = 0 | ||
size_flags_horizontal = 7 | ||
size_flags_vertical = 7 | ||
alignment = 1 | ||
script = ExtResource( 2 ) | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="TextureRect" type="TextureRect" parent="."] | ||
margin_right = 64.0 | ||
margin_bottom = 64.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
rect_min_size = Vector2( 64, 64 ) | ||
mouse_filter = 2 | ||
size_flags_horizontal = 7 | ||
size_flags_vertical = 7 | ||
texture = ExtResource( 1 ) | ||
expand = true | ||
stretch_mode = 6 | ||
|
||
[node name="Highlight" type="ColorRect" parent="TextureRect"] | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
focus_mode = 0 | ||
expand = true | ||
stretch_mode = 5 | ||
mouse_filter = 2 | ||
color = Color( 1, 1, 1, 0 ) | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="ColorRect" type="ColorRect" parent="."] | ||
[node name="ColorRect" type="ColorRect" parent="TextureRect"] | ||
show_behind_parent = true | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
mouse_filter = 2 | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 | ||
color = Color( 0.219608, 0.215686, 0.270588, 1 ) | ||
__meta__ = { | ||
"_edit_use_anchors_": true | ||
} | ||
|
||
[node name="Label" type="Label" parent="."] | ||
margin_top = 68.0 | ||
margin_right = 64.0 | ||
margin_bottom = 82.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 | ||
text = "Start" | ||
align = 1 | ||
valign = 2 | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="Highlight" type="ColorRect" parent="Label"] | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
mouse_filter = 2 | ||
color = Color( 1, 1, 1, 0 ) | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="ColorRect" type="ColorRect" parent="Label"] | ||
show_behind_parent = true | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
mouse_filter = 2 | ||
color = Color( 0.27451, 0.270588, 0.360784, 1 ) | ||
__meta__ = { | ||
"_edit_use_anchors_": true | ||
} | ||
|
||
[node name="LineEdit" type="LineEdit" parent="."] | ||
margin_top = 86.0 | ||
margin_right = 64.0 | ||
margin_bottom = 100.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
mouse_filter = 1 | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 | ||
custom_styles/normal = SubResource( 1 ) | ||
align = 1 | ||
|
||
[node name="Highlight" type="ColorRect" parent="LineEdit"] | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
mouse_filter = 2 | ||
color = Color( 1, 1, 1, 0 ) | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="ColorRect" type="ColorRect" parent="LineEdit"] | ||
show_behind_parent = true | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
mouse_filter = 2 | ||
color = Color( 0.27451, 0.270588, 0.360784, 1 ) | ||
__meta__ = { | ||
"_edit_use_anchors_": true | ||
} | ||
|
||
[connection signal="gui_input" from="." to="." method="_on_AvailableButton_gui_input"] | ||
[connection signal="focus_exited" from="LineEdit" to="." method="_on_LineEdit_focus_exited"] | ||
[connection signal="text_changed" from="LineEdit" to="." method="_on_LineEdit_text_changed"] |
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
Oops, something went wrong.