Skip to content

Commit

Permalink
Revert "Merging master into XML converter"
Browse files Browse the repository at this point in the history
  • Loading branch information
AsherGlick authored Oct 27, 2023
1 parent cb266c5 commit 7f6eae2
Show file tree
Hide file tree
Showing 16 changed files with 363 additions and 1,190 deletions.
28 changes: 6 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,23 +93,14 @@ jobs:

- name: Build Burrito Link
run: |
mkdir burrito_link/build
cd burrito_link/build
cmake ..
cd burrito_link
make
- name: Upload Standalone Executable Burrito Link
uses: actions/upload-artifact@v3
with:
name: burrito_link_exe
path: burrito_link/build/burrito_link.exe
if-no-files-found: error

- name: Upload Shared Library Burrito Link
- name: Upload created file
uses: actions/upload-artifact@v3
with:
name: burrito_link_dll
path: burrito_link/build/d3d11.dll
name: burrito_link
path: burrito_link/burrito_link.exe
if-no-files-found: error

Build-BurritoFG-Linux:
Expand Down Expand Up @@ -237,22 +228,15 @@ jobs:
with:
name: xml_converter

- name: Download Burrito Link Exe
- name: Download Burrito Link
uses: actions/download-artifact@v3
with:
name: burrito_link_exe

- name: Download Burrito Link DLL
uses: actions/download-artifact@v3
with:
name: burrito_link_dll

name: burrito_link

- name: Move Burrito Link
run: |
mkdir burrito_link/
mv burrito_link.exe burrito_link/
mv d3d11.dll burrito_link/
- uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion Gizmo/PointEdit.gd
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ func _process(delta):
)
$Plane.scale = new_scale
$Pillar.scale = new_scale

update_point()
4 changes: 2 additions & 2 deletions Route.gd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func refresh_mesh():
var tmpMesh = Mesh.new()
var i = 0
var last_uv: float = 0.0
for point_index in range(len(point_list)-1):
for point_index in range(len(point_list)-1):
var point:Vector3 = point_list[point_index]
var next_point:Vector3 = point_list[point_index+1]
# If the line starts or ends at map coordinates (0,0,0), don't draw the line.
Expand Down Expand Up @@ -56,7 +56,7 @@ func refresh_mesh():
var st = SurfaceTool.new()
st.begin(Mesh.PRIMITIVE_TRIANGLE_FAN)

for v in vertices.size():
for v in vertices.size():
st.add_color(color)
st.add_uv(UVs[v])
st.add_vertex(vertices[v])
Expand Down
13 changes: 2 additions & 11 deletions Settings.gd
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ const CONFIG_PATH = "user://settings.json"
var _config_data = {}
var local_category_data = {}

var minimum_width: int = 800
var minimum_height: int = 600

var override_size_enabled: bool = false;
var override_size_height: int = 1080
var override_size_width: int = 1920
Expand All @@ -21,18 +18,14 @@ func _ready():
var file = File.new()
file.open(CONFIG_PATH, file.READ)
var text = file.get_as_text()
var datum = JSON.parse(text)
var datum = JSON.parse(text)
self._config_data = JSON.parse(text).result

if self._config_data == null:
self._config_data = {}

if "local_category_data" in self._config_data:
self.local_category_data = self._config_data["local_category_data"]
if "minimum_width" in self._config_data:
self.minimum_width = self._config_data["minimum_width"]
if "minimum_height" in self._config_data:
self.minimum_height = self._config_data["minimum_height"]
if "override_size_enabled" in self._config_data:
self.override_size_enabled = self._config_data["override_size_enabled"]
if "override_size_height" in self._config_data:
Expand All @@ -49,8 +42,6 @@ func _ready():

func save():
_config_data = {
"minimum_width": minimum_width,
"minimum_height": minimum_height,
"override_size_enabled": override_size_enabled,
"override_size_height": override_size_height,
"override_size_width": override_size_width,
Expand All @@ -59,7 +50,7 @@ func save():
"burrito_link_env_args": burrito_link_env_args,
"local_category_data": local_category_data
}

var file = File.new()
file.open(CONFIG_PATH, File.WRITE)
file.store_string(JSON.print(self._config_data, " "))
36 changes: 13 additions & 23 deletions SettingsDialog.gd
Original file line number Diff line number Diff line change
@@ -1,44 +1,34 @@
extends WindowDialog

func load_settings():
var minimum_width: LineEdit = $ScrollContainer/GridContainer/MinimumWidth
minimum_width.text = String(Settings.minimum_width)
var minimum_height: LineEdit = $ScrollContainer/GridContainer/MinimumHeight
minimum_height.text = String(Settings.minimum_height)

var override_size: CheckButton = $ScrollContainer/GridContainer/OverrideSize
var override_size: CheckButton = $GridContainer/OverrideSize
override_size.pressed = Settings.override_size_enabled
var override_height: LineEdit = $ScrollContainer/GridContainer/OverrideHeight
var override_height: LineEdit = $GridContainer/OverrideHeight
override_height.text = String(Settings.override_size_height)
var override_width: LineEdit = $ScrollContainer/GridContainer/OverrideWidth
var override_width: LineEdit = $GridContainer/OverrideWidth
override_width.text = String(Settings.override_size_width)

var autolaunch_burrito_link: CheckButton = $ScrollContainer/GridContainer/AutoLaunchBurritoLink
var autolaunch_burrito_link: CheckButton = $GridContainer/AutoLaunchBurritoLink
autolaunch_burrito_link.pressed = Settings.burrito_link_auto_launch_enabled
var wine_path: LineEdit = $ScrollContainer/GridContainer/WinePath
var wine_path: LineEdit = $GridContainer/WinePath
wine_path.text = Settings.burrito_link_wine_path
var environment_vars: TextEdit = $ScrollContainer/GridContainer/EnvironmentVars
var environment_vars: TextEdit = $GridContainer/EnvironmentVars
environment_vars.text = Settings.burrito_link_env_args

func save_settings(new_value=null):
var minimum_width: LineEdit = $ScrollContainer/GridContainer/MinimumWidth
Settings.minimum_width = int(minimum_width.text)
var minimum_height: LineEdit = $ScrollContainer/GridContainer/MinimumHeight
Settings.minimum_height = int(minimum_height.text)

var override_size: CheckButton = $ScrollContainer/GridContainer/OverrideSize
var override_size: CheckButton = $GridContainer/OverrideSize
Settings.override_size_enabled = override_size.pressed
var override_height: LineEdit = $ScrollContainer/GridContainer/OverrideHeight
var override_height: LineEdit = $GridContainer/OverrideHeight
Settings.override_size_height = int(override_height.text)
var override_width: LineEdit = $ScrollContainer/GridContainer/OverrideWidth
var override_width: LineEdit = $GridContainer/OverrideWidth
Settings.override_size_width = int(override_width.text)

var autolaunch_burrito_link: CheckButton = $ScrollContainer/GridContainer/AutoLaunchBurritoLink
var autolaunch_burrito_link: CheckButton = $GridContainer/AutoLaunchBurritoLink
Settings.burrito_link_auto_launch_enabled = autolaunch_burrito_link.pressed
var wine_path: LineEdit = $ScrollContainer/GridContainer/WinePath
var wine_path: LineEdit = $GridContainer/WinePath
Settings.burrito_link_wine_path = wine_path.text
var environment_vars: TextEdit = $ScrollContainer/GridContainer/EnvironmentVars
var environment_vars: TextEdit = $GridContainer/EnvironmentVars
Settings.burrito_link_env_args = environment_vars.text

Settings.save()

Loading

0 comments on commit 7f6eae2

Please sign in to comment.