almost there. as in Star Wars almost there

This commit is contained in:
Jeff Carr 2025-02-05 14:42:50 -06:00
parent c328a755c6
commit 8dd0f88e7c
2 changed files with 6 additions and 2 deletions

View File

@ -46,8 +46,8 @@ func (tk *guiWidget) drawView() {
// for windows, make it the full size // for windows, make it the full size
a = tk.full.w0 a = tk.full.w0
b = tk.full.h0 b = tk.full.h0
c = tk.full.w1 c = tk.full.w0 + 20
d = tk.full.h1 d = tk.full.h0 + 2
} }
} else { } else {
if tk.internal { if tk.internal {

View File

@ -54,6 +54,10 @@ func (tk *guiWidget) redrawWindow(w int, h int) {
// tk.windowFrame.drawView() // tk.windowFrame.drawView()
tk.windowFrame.Show() tk.windowFrame.Show()
me.baseGui.SetViewBeneath(tk.windowFrame.cuiName, tk.cuiName, 1) me.baseGui.SetViewBeneath(tk.windowFrame.cuiName, tk.cuiName, 1)
me.baseGui.SetView(tk.windowFrame.cuiName, tk.windowFrame.full.w0, tk.windowFrame.full.h0, tk.windowFrame.full.w1, tk.windowFrame.full.h1, 0)
tk.hideWidgets()
tk.showWidgets()
// tk.windowFrame.drawView()
} }
// re-draws the buttons for each of the windows // re-draws the buttons for each of the windows