Skip to content

Commit

Permalink
style: button aligns correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercchase committed Jul 25, 2024
1 parent a53d33b commit cb14e77
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions godot/scenes/map/nodes/map_node.gd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends Button
extends Control

const margin = 10
const margin = 16

var children: Array = []

Expand Down
18 changes: 13 additions & 5 deletions godot/scenes/map/nodes/map_node.tscn
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
[gd_scene load_steps=3 format=3 uid="uid://bjsli15ybap6k"]

[ext_resource type="Texture2D" uid="uid://bap7b1bgbmgvc" path="res://assets/kenney_assets/board_game_icons/crown_b.svg" id="1_n5psb"]
[ext_resource type="Script" path="res://scenes/map/nodes/map_node.gd" id="2_6jj6h"]
[ext_resource type="Texture2D" uid="uid://cegte5ghg5m4l" path="res://assets/kenney_assets/board_game_icons/skull.svg" id="2_amxkw"]

[node name="MapNode" type="Button"]
[node name="MapNode" type="Control"]
layout_mode = 3
anchors_preset = 0
offset_right = 32.0
offset_bottom = 32.0
icon = ExtResource("1_n5psb")
flat = true
expand_icon = true
script = ExtResource("2_6jj6h")

[node name="Button" type="Button" parent="."]
layout_mode = 0
offset_left = -16.0
offset_top = -16.0
offset_right = 16.0
offset_bottom = 16.0
icon = ExtResource("2_amxkw")
expand_icon = true

0 comments on commit cb14e77

Please sign in to comment.