Skip to content

Commit 9e3001c

Browse files
committed
Gave the main content panels their own class.
1 parent 5481e60 commit 9e3001c

2 files changed

Lines changed: 27 additions & 4 deletions

File tree

LuaMenu/widgets/chili/skins/Evolved/skin.lua

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,31 @@ skin.main_window = {
448448
DrawResizeGrip = DrawResizeGrip,
449449
}
450450

451+
skin.main_window_large = {
452+
TileImage = ":c:tech_mainwindow_darker.png",
453+
tiles = {176, 64, 176, 64}, --// tile widths: left,top,right,bottom
454+
padding = {5, 4, 5, 2},
455+
hitpadding = {4, 4, 4, 4},
456+
457+
captionColor = {1, 1, 1, 0.45},
458+
backgroundColor = {0.1, 0.1, 0.1, 0.9},
459+
460+
boxes = {
461+
resize = {-21, -21, -10, -10},
462+
drag = {0, 0, "100%", 10},
463+
},
464+
465+
NCHitTest = NCHitTestWithPadding,
466+
NCMouseDown = WindowNCMouseDown,
467+
NCMouseDownPostChildren = WindowNCMouseDownPostChildren,
468+
noClickThrough = true,
469+
470+
DrawControl = DrawWindow,
471+
DrawDragGrip = function() end,
472+
DrawResizeGrip = DrawResizeGrip,
473+
}
474+
475+
451476
skin.main_window_small = {
452477
TileImage = ":c:tech_mainwindow_small_darker.png",
453478
tiles = {76, 40, 76, 40}, --// tile widths: left,top,right,bottom

LuaMenu/widgets/chobby/components/interface_root.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,12 @@ function GetInterfaceRoot(optionsParent, mainWindowParent, fontFunction)
241241
y = 0,
242242
right = 0,
243243
bottom = 0,
244-
classname = "main_window",
244+
classname = "main_window_large",
245245
name = "rightPanel_window",
246246
caption = "", -- Panel Window
247247
parent = holder_rightPanel,
248248
resizable = false,
249249
draggable = false,
250-
padding = {5, 4, 5, 2},
251250
children = {}
252251
}
253252
rightPanel_window:Hide()
@@ -321,13 +320,12 @@ function GetInterfaceRoot(optionsParent, mainWindowParent, fontFunction)
321320
y = 0,
322321
right = 0,
323322
bottom = 0,
324-
classname = "main_window",
323+
classname = "main_window_large",
325324
name = "mainContent_window",
326325
caption = "", -- Content Place
327326
parent = mainWindow_mainContent,
328327
resizable = false,
329328
draggable = false,
330-
padding = {5, 4, 5, 2},
331329
children = {}
332330
}
333331
mainContent_window:Hide()

0 commit comments

Comments
 (0)