Info menu
This commit is contained in:
@@ -14,8 +14,9 @@ TintedDrawable: {
|
|||||||
chatfield: {name: white, color: {r: 0, g: 0, b: 0, a: 0.2}},
|
chatfield: {name: white, color: {r: 0, g: 0, b: 0, a: 0.2}},
|
||||||
clear: {name: white, color: {r: 0.1, g: 0.1, b: 0.1, a: 0.75}},
|
clear: {name: white, color: {r: 0.1, g: 0.1, b: 0.1, a: 0.75}},
|
||||||
none: {name: white, color: {r: 0, g: 0, b: 0, a: 0}},
|
none: {name: white, color: {r: 0, g: 0, b: 0, a: 0}},
|
||||||
clear-over: {name: white, color: { hex: "#ffffff82" } },
|
clear-over: {name: white, color: { hex: "#ffffff82" }},
|
||||||
clear-down: {name: white, color: { hex: "#ffd37fff" } }
|
clear-alpha: {name: white, color: { hex: "#ffd37fff" }},
|
||||||
|
clear-down: {name: white, color: { hex: "#ffd37fff" }}
|
||||||
},
|
},
|
||||||
ButtonStyle: {
|
ButtonStyle: {
|
||||||
default: {down: button-down, up: button },
|
default: {down: button-down, up: button },
|
||||||
@@ -26,6 +27,7 @@ TextButtonStyle: {
|
|||||||
discord: {font: default-font, fontColor: white, up: discord-banner},
|
discord: {font: default-font, fontColor: white, up: discord-banner},
|
||||||
info: {font: default-font, fontColor: white, up: info-banner},
|
info: {font: default-font, fontColor: white, up: info-banner},
|
||||||
clear: {down: clear-down, up: clear, over: clear-over, font: default-font, fontColor: white, disabledFontColor: gray },
|
clear: {down: clear-down, up: clear, over: clear-over, font: default-font, fontColor: white, disabledFontColor: gray },
|
||||||
|
clear-partial: {down: white, up: button-select, over: clear-down, font: default-font, fontColor: white, disabledFontColor: gray },
|
||||||
empty: {font: default-font},
|
empty: {font: default-font},
|
||||||
toggle: {font: default-font, fontColor: white, checked: button-down, down: button-down, up: button, over: button-over, disabled: button, disabledFontColor: gray }
|
toggle: {font: default-font, fontColor: white, checked: button-down, down: button-down, up: button, over: button-over, disabled: button, disabledFontColor: gray }
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -114,6 +114,11 @@ public class PlacementFragment extends Fragment{
|
|||||||
header.labelWrap(() ->
|
header.labelWrap(() ->
|
||||||
!control.unlocks.isUnlocked(Recipe.getByResult(lastDisplay)) ? Bundles.get("text.blocks.unknown") : lastDisplay.formalName)
|
!control.unlocks.isUnlocked(Recipe.getByResult(lastDisplay)) ? Bundles.get("text.blocks.unknown") : lastDisplay.formalName)
|
||||||
.left().width(200f).padLeft(5);
|
.left().width(200f).padLeft(5);
|
||||||
|
header.add().growX();
|
||||||
|
if(control.unlocks.isUnlocked(Recipe.getByResult(lastDisplay))){
|
||||||
|
header.addButton("?", "clear-partial", () -> ui.content.show(Recipe.getByResult(lastDisplay)))
|
||||||
|
.size(8 * 5).padTop(-5).padRight(-5).right().grow();
|
||||||
|
}
|
||||||
}).growX().left();
|
}).growX().left();
|
||||||
topTable.row();
|
topTable.row();
|
||||||
//add requirement table
|
//add requirement table
|
||||||
|
|||||||
Reference in New Issue
Block a user