Permalink
Browse files

Rework interaction menu into a new style. Also, style overloads are e…

…asily possible.

Because I did this in the test scenario first, it wasn't really possible to encapsulate different steps, sorry!
  • Loading branch information...
Armag3ddon committed Oct 15, 2018
1 parent 952cfef commit c6d5c5044ffd52082cba990f9ad0a2e74cad5332
Showing with 1,042 additions and 290 deletions.
  1. +7 −0 planet/Objects.ocd/HUD.ocd/MenuDeco2.ocd/DefCore.txt
  2. BIN planet/Objects.ocd/HUD.ocd/MenuDeco2.ocd/Graphics.png
  3. +100 −0 planet/Objects.ocd/HUD.ocd/MenuDeco2.ocd/Script.c
  4. +5 −0 planet/Objects.ocd/HUD.ocd/ObjectInteractionMenu.ocd/OIM_NewStyle.ocd/DefCore.txt
  5. +736 −0 planet/Objects.ocd/HUD.ocd/ObjectInteractionMenu.ocd/OIM_NewStyle.ocd/Script.c
  6. +15 −0 planet/Objects.ocd/HUD.ocd/ObjectInteractionMenu.ocd/OIM_NewStyle.ocd/StringTblDE.txt
  7. +15 −0 planet/Objects.ocd/HUD.ocd/ObjectInteractionMenu.ocd/OIM_NewStyle.ocd/StringTblUS.txt
  8. +115 −289 planet/Objects.ocd/HUD.ocd/ObjectInteractionMenu.ocd/Script.c
  9. +8 −0 planet/Objects.ocd/Icons.ocd/Menu.ocd/ChangeBackground.ocd/DefCore.txt
  10. BIN planet/Objects.ocd/Icons.ocd/Menu.ocd/ChangeBackground.ocd/Graphics.png
  11. +8 −0 planet/Objects.ocd/Icons.ocd/Menu.ocd/ChangeColor.ocd/DefCore.txt
  12. BIN planet/Objects.ocd/Icons.ocd/Menu.ocd/ChangeColor.ocd/Graphics.png
  13. BIN planet/Objects.ocd/Icons.ocd/Menu.ocd/ChangeColor.ocd/GraphicsGrey.png
  14. +8 −0 planet/Objects.ocd/Icons.ocd/Menu.ocd/ExtraSlot.ocd/DefCore.txt
  15. BIN planet/Objects.ocd/Icons.ocd/Menu.ocd/ExtraSlot.ocd/Graphics.png
  16. +8 −0 planet/Objects.ocd/Icons.ocd/Menu.ocd/HideText.ocd/DefCore.txt
  17. BIN planet/Objects.ocd/Icons.ocd/Menu.ocd/HideText.ocd/Graphics.png
  18. BIN planet/Objects.ocd/Icons.ocd/Menu.ocd/HideText.ocd/GraphicsShow.png
  19. +8 −0 planet/Objects.ocd/Icons.ocd/Menu.ocd/Settings.ocd/DefCore.txt
  20. BIN planet/Objects.ocd/Icons.ocd/Menu.ocd/Settings.ocd/Graphics.png
  21. +8 −0 planet/Objects.ocd/Icons.ocd/Menu.ocd/Tab.ocd/DefCore.txt
  22. BIN planet/Objects.ocd/Icons.ocd/Menu.ocd/Tab.ocd/Graphics.png
  23. BIN planet/Objects.ocd/Icons.ocd/Menu.ocd/Tab.ocd/GraphicsHighlight.png
  24. BIN planet/Objects.ocd/Icons.ocd/Menu.ocd/Tab.ocd/GraphicsRight.png
  25. BIN planet/Objects.ocd/Icons.ocd/Menu.ocd/Tab.ocd/GraphicsRightHighlight.png
  26. BIN planet/Objects.ocd/Icons.ocd/Menu.ocd/Tab.ocd/GraphicsRightSelected.png
  27. BIN planet/Objects.ocd/Icons.ocd/Menu.ocd/Tab.ocd/GraphicsSelected.png
  28. BIN planet/Objects.ocd/Icons.ocd/MoveItems.ocd/Graphics.png
  29. BIN planet/Objects.ocd/Icons.ocd/MoveItems.ocd/GraphicsLeft.png
  30. +1 −1 planet/Objects.ocd/Libraries.ocd/ClonkControl.ocd/Script.c
@@ -0,0 +1,7 @@
[DefCore]
id=GUI_MenuDeco2
Version=8,0
Category=C4D_StaticBack
Width=1
Height=1
HideInCreator=true
Binary file not shown.
@@ -0,0 +1,100 @@
/*-- Menu-Deco --*/
//func FrameDecorationBackClr() { return RGBa(25, 25, 25, 128); }
func FrameDecorationBorderTop() { return 0; }
func FrameDecorationBorderLeft() { return 0; }
func FrameDecorationBorderRight() { return 0; }
func FrameDecorationBorderBottom() { return 0; }
func Definition(def)
{
var corner_size = 2;
var border_size = 2;
var border_length = 28;
var offs = corner_size/2;
var offs = corner_size/2;
SetProperty("ActMap", {
FrameDecoTopLeft = {
Prototype = Action,
Name = "FrameDecoTopLeft",
X = 0,
Y = 0,
Wdt = corner_size,
Hgt = corner_size,
OffX = -offs,
OffY = -offs,
},
FrameDecoTopRight = {
Prototype = Action,
Name = "FrameDecoTopRight",
X = border_length + corner_size,
Y = 0,
Wdt = corner_size,
Hgt = corner_size,
OffX = 0,
OffY = -offs,
},
FrameDecoBottomRight = {
Prototype = Action,
Name = "FrameDecoBottomRight",
X = border_length + corner_size,
Y = border_length + corner_size,
Wdt = corner_size,
Hgt = corner_size,
OffX = 0,
OffY = 0,
},
FrameDecoBottomLeft = {
Prototype = Action,
Name = "FrameDecoBottomLeft",
X = 0,
Y = border_length + corner_size,
Wdt = corner_size,
Hgt = corner_size,
OffX = -offs,
OffY = 0,
},
FrameDecoTop = {
Prototype = Action,
Name = "FrameDecoTop",
X = corner_size,
Y = 0,
Wdt = border_length,
Hgt = border_size,
OffX = 0,
OffY = -offs,
},
FrameDecoRight = {
Prototype = Action,
Name = "FrameDecoRight",
X = corner_size + border_length,
Y = corner_size,
Wdt = border_size,
Hgt = border_length,
OffX = 0,
OffY = 0,
},
FrameDecoBottom = {
Prototype = Action,
Name = "FrameDecoBottom",
X = corner_size,
Y = border_length + corner_size,
Wdt = border_length,
Hgt = border_size,
OffX = +offs,
OffY = 0,
},
FrameDecoLeft = {
Prototype = Action,
Name = "FrameDecoLeft",
X = 0,
Y = corner_size,
Wdt = border_size,
Hgt = border_length,
OffX = -offs,
OffY = 0,
}
});
}
@@ -0,0 +1,5 @@
[DefCore]
id=GUI_OIM_NewStyle
Version=8,0
Category=C4D_StaticBack
HideInCreator=true
Oops, something went wrong.

0 comments on commit c6d5c50

Please sign in to comment.