1 Year Ago
Reserve launcher toolbar in EditorMainWindow Add launcher widget, remake it and add to toolbar on refresh First draft for launch config editor UI Pass toolbar ref through event instead of exposing singleton Remove ConfigListView, ConfigPropertySheet, start writing configs to cookie https://files.facepunch.com/devultj/1b0311b1/sbox_7WhaYhvFjc.mp4 Can generate launch configs from addon configs Toolbar grabs launch configs + analyses enabled addons, hook up play/stop buttons Add PropertySheet.PropertyUpdated Remove Auto prefix from generated options, give them icons instead Remove unnecessary layout on LaunchConfigEditor Fixes "Attempting to add QLayout" warning every time it's being made Update launcher combobox style, button style, clean up Fixed launch combo box vertical alignment Persist the last selected config and select it on load Stop selecting multiple list view items, scroll to item if possible Additionally, select our new config when creating it Reserve launcher toolbar in EditorMainWindow First draft for launch config editor UI Pass toolbar ref through event instead of exposing singleton Remove ConfigListView, ConfigPropertySheet, start writing configs to cookie https://files.facepunch.com/devultj/1b0311b1/sbox_7WhaYhvFjc.mp4 Toolbar grabs launch configs + analyses enabled addons, hook up play/stop buttons Add PropertySheet.PropertyUpdated Moved Tools toolbar to the left of the Editor Removed settings button, embed it in the combo box list Also added a check to ensure we're not displaying content/tool/model addons in generated configs Removed unused code, cleanup Add InGame, MapName, GameIdent to Tools.Globals Inform tools when game loop starts / ends Update Launcher icons on gameloop update Stop button gets disabled when it's not needed, play button turns into a restart button when in-game Execute Config.PostLaunchCommands on gameloopstart OnGameLoopStart -> OnGameLoopStarted Launch Configs read addon metadata for compatible maps/games Cleanup Remove args from OnGameLoopStopped, as they're not needed Re-add icons to generated configs, add Generated suffix Give display names to game / map, renamed MapIdent to MapName Moved config name outside of Identity section Pre/PostLaunchCommands as string, split by semi-colon params Add footer with save/discard buttons to config editor Add static AddonConfig.GetPackageType so we can convert anywhere Added addon editor properties, and addon selector window We've got a few windows that are doing the same thing here, so I'm gonna look into unifying it shortly. https://files.facepunch.com/devultj/1b0711b1/sbox_ICOQ0r16AU.mp4 Use package information for local addons where possible Don't query local addons in OnPaint, use Package.IsRemote Grey out Save button by default Refresh config list when local addons are changed Add IntSliderProperty Clamp LaunchConfig.MaxPlayers Fix error when commands are null Focus AddonSelector search filter when it opens Changed AddonProperty to LineEdit to support write-ins, made LineEdit.Value virtual Only show launcher refresh icon when the current game matches the selected configuration