Skip to content

Commit

Permalink
fixed message position range
Browse files Browse the repository at this point in the history
  • Loading branch information
IPdotSetAF committed Apr 9, 2024
1 parent 8c08e4d commit fcad0df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ window.onload = function () {
messagefolder.add(options, "ui_message_text").name("Message Text").onChange(updateMask);
messagefolder.add(options, "ui_message_scale").min(1).max(10).step(1).name("Scale").onChange(updateMask);
const messagePositionFolder = messagefolder.addFolder("Position");
messagePositionFolder.add(options, "ui_message_positionX").min(-100).max(100).step(1).name("X").onChange(updateMask);
messagePositionFolder.add(options, "ui_message_positionY").min(-100).max(100).step(1).name("Y").onChange(updateMask);
messagePositionFolder.add(options, "ui_message_positionX").min(0).max(200).step(1).name("X").onChange(updateMask);
messagePositionFolder.add(options, "ui_message_positionY").min(0).max(200).step(1).name("Y").onChange(updateMask);

const otherFolder = gui.addFolder("Other");
otherFolder.add(options, 'ui_other_codesCommaSeparated').name('Codes (Comma separated)').onChange(() => {
Expand Down
8 changes: 4 additions & 4 deletions project.json
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,8 @@
"condition" : "ui_message_message.value != 0",
"fraction" : false,
"index" : 37,
"max" : 100,
"min" : -100,
"max" : 200,
"min" : 0,
"order" : 137,
"text" : "Message Position X",
"type" : "slider",
Expand All @@ -544,8 +544,8 @@
"condition" : "ui_message_message.value != 0",
"fraction" : false,
"index" : 38,
"max" : 100,
"min" : -100,
"max" : 200,
"min" : 0,
"order" : 138,
"text" : "Message Position Y",
"type" : "slider",
Expand Down

0 comments on commit fcad0df

Please sign in to comment.