Skip to content

An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.

C++

Options: a key binding of a script's page in a box, as the page's other buttons are

Alan Saunders8acf8b094ae9
diff --git a/files/data/scripts/omw/input/settings.lua b/files/data/scripts/omw/input/settings.lua
index cc8c032..57aeab7 100644
--- a/files/data/scripts/omw/input/settings.lua
+++ b/files/data/scripts/omw/input/settings.lua
@@ -131,10 +131,21 @@ I.Settings.registerRenderer('inputBinding', function(id, set, arg)
local binding = bindingSection:get(id)
local label = bindingLabel(recording and recording.id == id, binding)
+ -- Isowind: the binding is in a box, as the other settings' buttons (Reset, Yes / No) are, to show where to click
local recorder = {
- template = I.MWUI.templates.textNormal,
- props = {
- text = label,
+ template = I.MWUI.templates.box,
+ content = ui.content {
+ {
+ template = I.MWUI.templates.padding,
+ content = ui.content {
+ {
+ template = I.MWUI.templates.textNormal,
+ props = {
+ text = label,
+ },
+ },
+ },
+ },
},
events = {
mouseClick = async:callback(function()
@@ -157,6 +168,7 @@ I.Settings.registerRenderer('inputBinding', function(id, set, arg)
type = ui.TYPE.Flex,
props = {
horizontal = true,
+ arrange = ui.ALIGNMENT.Center,
},
content = ui.content {
name,