-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*Added new Screen Page *Added new settings to the mod *Tweaked Sliders
- Loading branch information
Showing
9 changed files
with
185 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/net/i_no_am/viewmodel/event/SecondMenuCallBack.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package net.i_no_am.viewmodel.event; | ||
|
||
import io.github.itzispyder.improperui.ImproperUIAPI; | ||
import io.github.itzispyder.improperui.script.CallbackHandler; | ||
import io.github.itzispyder.improperui.script.CallbackListener; | ||
import io.github.itzispyder.improperui.script.events.MouseEvent; | ||
import net.i_no_am.viewmodel.client.Global; | ||
|
||
|
||
public class SecondMenuCallBack implements CallbackListener, Global { | ||
|
||
|
||
@CallbackHandler | ||
public void openHandsSettingScreen(MouseEvent e) { | ||
if (e.input.isDown()) | ||
ImproperUIAPI.parseAndRunFile(modId, "secondScreen.ui"); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
src/main/resources/assets/viewmodel/improperui/secondScreen.ui
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
|
||
div #background { | ||
size: 100% | ||
background-color: black | ||
opacity: 0.0 | ||
} | ||
|
||
div #main { | ||
size: 150 160 | ||
background-color: black | ||
opacity: 0.5 | ||
border-radius: 3 | ||
shadow-distance: 3 | ||
shadow-color: green | ||
center: both | ||
|
||
div #title { | ||
size: 100% 10 | ||
inner-text: "Hands Settings" | ||
text-scale: 1.2 | ||
text-shadow: true | ||
text-color: green | ||
text-align: center | ||
background-color: #00000000 | ||
margin-top: 7 | ||
} | ||
|
||
|
||
div #settings { | ||
size: 80% 90% | ||
margin-top: 10% | ||
child-align: grid | ||
grid-columns: 2 | ||
opacity: 0 | ||
margin: 10% | ||
margin-top: 20% | ||
|
||
|
||
checkbox #no-hand-swing -viewmodel:config.properties:no-hand-swing {} | ||
label { | ||
inner-text: "No Swing Animations" | ||
margin-left: 4 | ||
} | ||
|
||
|
||
checkbox #no-food-swing -viewmodel:config.properties:no-food-swing {margin-top: 6} | ||
label { | ||
margin-top: 6 | ||
inner-text: "No Eating Animations" | ||
margin-left: 4 | ||
} | ||
checkbox #no-hand-render -viewmodel:config.properties:no-hand-render {margin-top: 6} | ||
label { | ||
margin-top: 6 | ||
inner-text: "No Hands Render" | ||
margin-left: 4 | ||
} | ||
|
||
|
||
div {} | ||
div { | ||
margin-top: 20 | ||
} | ||
|
||
div { inner-text: "Main Item Scale"; } | ||
slider -viewmodel:config.properties:main-hand-scale { | ||
min: 0.1 | ||
max: 3.0 | ||
val: 1.0 | ||
width: 75% | ||
} | ||
div { inner-text: "Off Item Scale"; } | ||
slider -viewmodel:config.properties:off-hand-scale { | ||
min: 0.1 | ||
max: 3.0 | ||
val: 1.0 | ||
width: 75% | ||
} | ||
div { inner-text: "Hand Swing Speed"; } | ||
slider -viewmodel:config.properties:hand-speed-swing { | ||
min: 1.0 | ||
max: 7.0 | ||
val: 3.0 | ||
width: 75% | ||
} | ||
} | ||
} |