ForgottenClank wrote: ↑19 Feb 2021
I am beginning to find it frustrating positioning the graphics in GIMP and then manually copying the coordinates into the device_2D.lua file. How do you handle this process? Are there any faster alternatives?
There's no particualarly quick way to do it that I'm aware of, so I just use the RE2DPreview image to get a rough idea of where it should be in device_2D.lua.
From there, if I want to tweak stuff I use the "live" GUI.lua file, so I can move things without having to constantly close/reopen Recon. This is located here:
C:\Users\<YourNameInBrightLightsHere>\AppData\Roaming\Propellerhead Software\RackExtensions_Dev
Remember that any changes you make here are not committed, so you should have both the live version and the real one open at the same time, remembering of course that the live file uses values that are 20% the size of the ones in device_2D; Since day one, near enough, I've been in the habit of formatting the device_2D values to suit this way of working.
So what you input in device_2D as:
local left_column_left = 27*5
local left_column_top = 7*5
OnOffSwitch = {offset = { left_column_left,left_column_top }, { path = "On_Off", frames = 4 }},
will show up in GUI.lua (after all parsing and merging with the hdgui_2D.lua file) as:
jbox.toggle_button{
transform = {27,7},
background = jbox.image_sequence{path = "Reason_GUI_On_Off", frames = 4},
value = "/custom_properties/OnOff",
tooltip_template = jbox.ui_text( "OnOff" ),
show_remote_box = true,
show_automation_rect = true,
},
You do your tweaking on the transform values and then just paste it back in, when ready. If you're using Notepad++ then you should get warnings on the live file if you overwrite it, so if you forget to copy something over you should still be able to edit it before it is lost.
Hope this helps,
Brian