1
0
mirror of https://github.com/teverse/teverse synced 2025-08-24 15:14:46 +02:00

Compare commits

...

5 Commits

Author SHA1 Message Date
Jay
626d75f0e1 ara 2020-01-18 00:21:40 +00:00
Jay
a59deb61d1 Merge branch 'master' of https://github.com/teverse/teverse 2020-01-18 00:13:08 +00:00
Jay
447f5aa460 fix 2020-01-18 00:13:06 +00:00
Sanjay
e992c4c862 Added dragable optional parameter to ui.window (#58)
* Added dragable optional parameter to ui.window

* Change Test Icon

From satellite to circle play icon.
2020-01-17 23:36:13 +00:00
Jay
eb1ce84963 edited dump 2020-01-17 22:55:13 +00:00
3 changed files with 464 additions and 193 deletions

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ local tabs = {
{"Settings", "fa:s-cog", function ()
shared.windows.settings.visible = not shared.windows.settings.visible
end},
{"Test", "fa:s-satellite-dish", function ()
{"Test", "fa:s-play-circle", function ()
if not shared.workshop.gameFilePath or shared.workshop.gameFilePath == "" then
ui.prompt("Please save this game before testing.")
else

View File

@ -76,7 +76,7 @@ return {
-- if closable is true OR a function, a close button will appear in the title bar.
-- when clicked, if closable is a function, it is fired after hiding the window.
window = function(parent, title, size, position, dockable, closable)
window = function(parent, title, size, position, dockable, closable, dragable)
local container = create("guiFrame", parent, {
size = size,
name = title,
@ -102,6 +102,7 @@ return {
}, themer.types.primary)
titleBar:mouseLeftPressed(function ()
if dragable == false then return end -- Backwards compatibility
dock.beginWindowDrag(container, not dockable)
end)