Yue Posted July 11, 2019 Share Posted July 11, 2019 I have a problem running in full screen, my findings is that if I set the same window size for the context, the error is fixed, however the Gui is not visible when I press the escape key. Quote Link to comment Share on other sites More sharing options...
Angelwolf Posted July 11, 2019 Share Posted July 11, 2019 Your code is probably overwriting the menu code. I doubt this is a problem with Leadwerks but your code. Maybe repost in a relevant board and include your code? Instead of setting the context, just use get and assign to a variable Quote My Games: Nightmare Prism:::WolfTale:::Dungeon Creeper:::Despair of Ordinary Men:::Piano Simulator 2016:::House (W.I.P) Link to comment Share on other sites More sharing options...
Yue Posted July 11, 2019 Author Share Posted July 11, 2019 8 hours ago, Angelwolf said: Your code is probably overwriting the menu code. I doubt this is a problem with Leadwerks but your code. Maybe repost in a relevant board and include your code? Instead of setting the context, just use get and assign to a variable window = Window:Create(title,0,0,1920,1080,Window.Fullscreen) --Create the graphics context context=Context:Create(window,0) context:SetScale(1920,1080) -- Not Problem Full Screen, error Gui not visible. Quote Link to comment Share on other sites More sharing options...
Yue Posted July 11, 2019 Author Share Posted July 11, 2019 Other sample. local window = Window:Create("App",0,0,800,600) local context = Context:Create(window) context:SetScale(800,600) -- Quit line, show Gui. Fix Scren Full problem. -- Not Set Scale Context, problem full screen. local gui = GUI:Create(context) local base = gui:GetBase() base:SetScript("Scripts/GUI/Panel.lua") x=20 y=20 local sep=30 widget = Widget:Label("Default",x,y,300,20,base) y=y+sep widget = Widget:Label("Left with border",x,y,300,20,base) widget:SetStyle(LABEL_BORDER) y=y+sep widget = Widget:Label("Center with border",x,y,300,20,base) widget:SetStyle(LABEL_BORDER + LABEL_CENTER) y=y+sep widget = Widget:Label("Right with border",x,y,300,20,base) widget:SetStyle(LABEL_BORDER + LABEL_RIGHT) y=y+sep widget = Widget:Label("Center with border and vertical align",x,y,300,80,base) widget:SetStyle(LABEL_BORDER + LABEL_CENTER + LABEL_MIDDLE) y=y+90 widget = Widget:Label("Sometimes a label just has too much text to fit in its space. When this happens, just use the worwrap option!",x,y,300,80,base) widget:SetStyle(LABEL_BORDER + LABEL_WRAP) y=y+sep while true do if window:Closed() then return end if window:KeyHit(Key.Escape) then return end while EventQueue:Peek() do local event = EventQueue:Wait() if event.id == Event.WidgetAction then System:Print("WidgetAction") elseif event.id == Event.WidgetSelect then System:Print("WidgetSelect") end end context:Sync() end Quote Link to comment Share on other sites More sharing options...
Yue Posted July 11, 2019 Author Share Posted July 11, 2019 the problem is definitely here. I will expose my case. My computer has a gtx 1050 graphics card, this card lacks a vga port like the one the monitor has, so I get a vga to hdmi adapter. A few years ago the problem is that although the vga monitor was connected through the hdmi converter, I do not recognize the resolutions when starting the computer, as it appears in the minimum resolution, what I had to do was disconnect the converter and connect it again. With this I had two options or two groups of resolutions to select in the nvidia panel. One category of HD, and another of PC. With the passing of time the updates of the controller nvidia became evident, and to turn off the computer, it was not necessary to reconnect the converter to turn it on, recognized the last configuration saved previously. Today I updated again the controller nvidia, the surprise was that in hd only recognizes me about three screen resociones and in the pc several, and leadwerks works well in full screen mode. Now, if I disconnect the converter and connect it, new screen resolutions appear in the HD category and at this point Leadwerks is damaged in full screen mode. Anybody have any idea why this happens? Translated with www.DeepL.com/Translator Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.