Compare commits
No commits in common. "051e5afe8b46a82197008f359af9f46d3ce72103" and "0ae74d294ff2e99d208c31e0b5ce801e15a01ffe" have entirely different histories.
051e5afe8b
...
0ae74d294f
@ -77,110 +77,6 @@
|
|||||||
"offsetZ" : 0
|
"offsetZ" : 0
|
||||||
},
|
},
|
||||||
"iconPath" : "Textures/icons/itemIconItemGeneric.png"
|
"iconPath" : "Textures/icons/itemIconItemGeneric.png"
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "Copper",
|
|
||||||
"tokens" : [
|
|
||||||
"GRAVITY",
|
|
||||||
"TARGETABLE"
|
|
||||||
],
|
|
||||||
"graphicsTemplate": {
|
|
||||||
"model": {
|
|
||||||
"path" : "Models/items/materials/rock1.glb"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"collidable": {
|
|
||||||
"type" : "CUBE",
|
|
||||||
"dimension1" : 0.1,
|
|
||||||
"dimension2" : 0.1,
|
|
||||||
"dimension3" : 0.35,
|
|
||||||
"rotX": 0,
|
|
||||||
"rotY": 0,
|
|
||||||
"rotZ": 0,
|
|
||||||
"rotW": 1,
|
|
||||||
"offsetX" : 0,
|
|
||||||
"offsetY" : 0.05,
|
|
||||||
"offsetZ" : 0
|
|
||||||
},
|
|
||||||
"iconPath" : "Textures/icons/itemIconItemGeneric.png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "Tin",
|
|
||||||
"tokens" : [
|
|
||||||
"GRAVITY",
|
|
||||||
"TARGETABLE"
|
|
||||||
],
|
|
||||||
"graphicsTemplate": {
|
|
||||||
"model": {
|
|
||||||
"path" : "Models/items/materials/rock1.glb"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"collidable": {
|
|
||||||
"type" : "CUBE",
|
|
||||||
"dimension1" : 0.1,
|
|
||||||
"dimension2" : 0.1,
|
|
||||||
"dimension3" : 0.35,
|
|
||||||
"rotX": 0,
|
|
||||||
"rotY": 0,
|
|
||||||
"rotZ": 0,
|
|
||||||
"rotW": 1,
|
|
||||||
"offsetX" : 0,
|
|
||||||
"offsetY" : 0.05,
|
|
||||||
"offsetZ" : 0
|
|
||||||
},
|
|
||||||
"iconPath" : "Textures/icons/itemIconItemGeneric.png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "Bronze",
|
|
||||||
"tokens" : [
|
|
||||||
"GRAVITY",
|
|
||||||
"TARGETABLE"
|
|
||||||
],
|
|
||||||
"graphicsTemplate": {
|
|
||||||
"model": {
|
|
||||||
"path" : "Models/items/materials/rock1.glb"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"collidable": {
|
|
||||||
"type" : "CUBE",
|
|
||||||
"dimension1" : 0.1,
|
|
||||||
"dimension2" : 0.1,
|
|
||||||
"dimension3" : 0.35,
|
|
||||||
"rotX": 0,
|
|
||||||
"rotY": 0,
|
|
||||||
"rotZ": 0,
|
|
||||||
"rotW": 1,
|
|
||||||
"offsetX" : 0,
|
|
||||||
"offsetY" : 0.05,
|
|
||||||
"offsetZ" : 0
|
|
||||||
},
|
|
||||||
"iconPath" : "Textures/icons/itemIconItemGeneric.png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id" : "Clay",
|
|
||||||
"tokens" : [
|
|
||||||
"GRAVITY",
|
|
||||||
"TARGETABLE"
|
|
||||||
],
|
|
||||||
"graphicsTemplate": {
|
|
||||||
"model": {
|
|
||||||
"path" : "Models/items/materials/rock1.glb"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"collidable": {
|
|
||||||
"type" : "CUBE",
|
|
||||||
"dimension1" : 0.1,
|
|
||||||
"dimension2" : 0.1,
|
|
||||||
"dimension3" : 0.35,
|
|
||||||
"rotX": 0,
|
|
||||||
"rotY": 0,
|
|
||||||
"rotZ": 0,
|
|
||||||
"rotW": 1,
|
|
||||||
"offsetX" : 0,
|
|
||||||
"offsetY" : 0.05,
|
|
||||||
"offsetZ" : 0
|
|
||||||
},
|
|
||||||
"iconPath" : "Textures/icons/itemIconItemGeneric.png"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"files" : [
|
"files" : [
|
||||||
|
|||||||
@ -32,7 +32,6 @@ Chop trees for lumber
|
|||||||
Stone products
|
Stone products
|
||||||
- Stone tools
|
- Stone tools
|
||||||
- Forge
|
- Forge
|
||||||
- Hearth
|
|
||||||
|
|
||||||
|
|
||||||
# Copper Age
|
# Copper Age
|
||||||
@ -44,38 +43,10 @@ Copper materials
|
|||||||
Tools
|
Tools
|
||||||
- Scissors
|
- Scissors
|
||||||
- Saw
|
- Saw
|
||||||
|
-
|
||||||
|
|
||||||
Crafting Stations
|
Crafting Stations
|
||||||
- Spinning wheel
|
- Spinning wheel
|
||||||
- Loom
|
- Loom
|
||||||
- Anvil
|
|
||||||
|
|
||||||
Electrical wire
|
|
||||||
|
|
||||||
Piping (antimicrobial)
|
|
||||||
|
|
||||||
# Bronze Age
|
|
||||||
Essentially just durability improvements on copper age
|
|
||||||
Allows mining of Iron
|
|
||||||
|
|
||||||
New mechanics?
|
|
||||||
- Automatons
|
|
||||||
- Complex machinery
|
|
||||||
- Flying contraptions
|
|
||||||
|
|
||||||
Tin
|
|
||||||
- Floating glass process
|
|
||||||
|
|
||||||
# Iron Age
|
|
||||||
|
|
||||||
|
|
||||||
Magnets
|
|
||||||
- Generators
|
|
||||||
|
|
||||||
|
|
||||||
# Steel Age
|
|
||||||
|
|
||||||
Rails
|
|
||||||
Pipes
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,6 @@ import electrosphere.renderer.ui.elements.Label;
|
|||||||
import electrosphere.renderer.ui.elements.VirtualScrollable;
|
import electrosphere.renderer.ui.elements.VirtualScrollable;
|
||||||
import electrosphere.renderer.ui.elementtypes.Element;
|
import electrosphere.renderer.ui.elementtypes.Element;
|
||||||
import electrosphere.renderer.ui.elementtypes.ContainerElement.YogaAlignment;
|
import electrosphere.renderer.ui.elementtypes.ContainerElement.YogaAlignment;
|
||||||
import electrosphere.renderer.ui.events.FocusEvent;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The crafting panel
|
* The crafting panel
|
||||||
@ -89,12 +88,6 @@ public class CraftingPanel {
|
|||||||
CraftingPanel.setDetails(rVal, recipeDetailsSection, recipe);
|
CraftingPanel.setDetails(rVal, recipeDetailsSection, recipe);
|
||||||
selectedRecipe = recipe;
|
selectedRecipe = recipe;
|
||||||
});
|
});
|
||||||
recipeButton.setOnFocus((FocusEvent event) -> {
|
|
||||||
CraftingPanel.setDetails(rVal, recipeDetailsSection, recipe);
|
|
||||||
selectedRecipe = recipe;
|
|
||||||
});
|
|
||||||
recipeButton.setMarginTop(DETAILS_SPACER_HEIGHT);
|
|
||||||
recipeButton.setMarginLeft(DETAILS_SPACER_HEIGHT);
|
|
||||||
recipeScrollable.addChild(recipeButton);
|
recipeScrollable.addChild(recipeButton);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
package electrosphere.renderer.ui.elements;
|
package electrosphere.renderer.ui.elements;
|
||||||
|
|
||||||
import java.util.function.Consumer;
|
|
||||||
|
|
||||||
import org.joml.Vector3f;
|
import org.joml.Vector3f;
|
||||||
|
|
||||||
import electrosphere.engine.Globals;
|
import electrosphere.engine.Globals;
|
||||||
@ -312,20 +310,6 @@ public class Button extends StandardContainerElement implements DrawableElement,
|
|||||||
onFocusCallback = callback;
|
onFocusCallback = callback;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Custom method to register a consumer as a callback for focus
|
|
||||||
* @param callback The callback
|
|
||||||
*/
|
|
||||||
public void setOnFocus(Consumer<FocusEvent> callback){
|
|
||||||
onFocusCallback = new FocusEventCallback() {
|
|
||||||
@Override
|
|
||||||
public boolean execute(FocusEvent event) {
|
|
||||||
callback.accept(event);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setOnLoseFocus(FocusEventCallback callback) {
|
public void setOnLoseFocus(FocusEventCallback callback) {
|
||||||
onLoseFocusCallback = callback;
|
onLoseFocusCallback = callback;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user