Update some textures, for fun!
|
@ -45,9 +45,9 @@ bool Input::isMouseDown(u32 button) {
|
||||||
void Input::setMouseLocked(bool lock) {
|
void Input::setMouseLocked(bool lock) {
|
||||||
forceMouseUnlocked = !lock;
|
forceMouseUnlocked = !lock;
|
||||||
mouseLocked = lock;
|
mouseLocked = lock;
|
||||||
let mousePos = static_cast<Window*>(glfwGetWindowUserPointer(window))->getSize() / 2;
|
ivec2 mousePos = static_cast<Window*>(glfwGetWindowUserPointer(window))->getSize() / 2;
|
||||||
glfwSetCursorPos(window, mousePos.x, mousePos.y);
|
|
||||||
glfwSetInputMode(window, GLFW_CURSOR, (mouseLocked ? GLFW_CURSOR_HIDDEN : GLFW_CURSOR_NORMAL));
|
glfwSetInputMode(window, GLFW_CURSOR, (mouseLocked ? GLFW_CURSOR_HIDDEN : GLFW_CURSOR_NORMAL));
|
||||||
|
glfwSetCursorPos(window, lock ? LOCKED_MOUSE_POS.x : mousePos.x, lock ? LOCKED_MOUSE_POS.y : mousePos.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
ivec2 Input::getMousePos() {
|
ivec2 Input::getMousePos() {
|
||||||
|
|
|
@ -45,7 +45,7 @@ chat._refresh = function()
|
||||||
local i = 0
|
local i = 0
|
||||||
for _, identifier in ipairs(chat.channel_order) do
|
for _, identifier in ipairs(chat.channel_order) do
|
||||||
local channel = chat.channels[identifier]
|
local channel = chat.channels[identifier]
|
||||||
chat_menu_tabs:append(Gui.Box {
|
chat_menu_tabs:append(zepha.Gui.Box {
|
||||||
size = { '48dp', '10dp' },
|
size = { '48dp', '10dp' },
|
||||||
pos = { i * 49 .. 'dp', '0dp' },
|
pos = { i * 49 .. 'dp', '0dp' },
|
||||||
background = (chat.current_channel == identifier) and '#0005' or '#0002',
|
background = (chat.current_channel == identifier) and '#0005' or '#0002',
|
||||||
|
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 815 B After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 876 B After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 205 B After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 496 B After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 689 B After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 504 B After Width: | Height: | Size: 2.5 KiB |
|
@ -1,6 +1,6 @@
|
||||||
local identifier = "zeus:world:plains"
|
local identifier = "zeus:world:plains"
|
||||||
|
|
||||||
local wood = "zeus:default:wood"
|
local wood = "zeus:default:bush_stem"
|
||||||
local leaf = "zeus:default:leaves"
|
local leaf = "zeus:default:leaves"
|
||||||
local none = "invalid"
|
local none = "invalid"
|
||||||
|
|
||||||
|
@ -93,13 +93,13 @@ table.insert(structures, zepha.create_structure({
|
||||||
origin = V(2, 2, 2),
|
origin = V(2, 2, 2),
|
||||||
probability = 0.0005,
|
probability = 0.0005,
|
||||||
layout = {
|
layout = {
|
||||||
trunk_layer_0,
|
-- trunk_layer_0,
|
||||||
trunk_layer_0,
|
-- trunk_layer_0,
|
||||||
trunk_layer_0,
|
-- trunk_layer_0,
|
||||||
trunk_layer_0,
|
-- trunk_layer_0,
|
||||||
trunk_layer_1,
|
-- trunk_layer_1,
|
||||||
trunk_layer_1,
|
-- trunk_layer_1,
|
||||||
trunk_layer_1,
|
-- trunk_layer_1,
|
||||||
trunk_layer_2,
|
trunk_layer_2,
|
||||||
trunk_layer_2,
|
trunk_layer_2,
|
||||||
trunk_layer_2,
|
trunk_layer_2,
|
||||||
|
@ -128,7 +128,7 @@ for i = 1, 5 do
|
||||||
layout = {{{ "zeus:default:tall_grass_" .. tostring(i) }}}
|
layout = {{{ "zeus:default:tall_grass_" .. tostring(i) }}}
|
||||||
}))
|
}))
|
||||||
end
|
end
|
||||||
--
|
|
||||||
table.insert(structures, zepha.create_structure({
|
table.insert(structures, zepha.create_structure({
|
||||||
origin = V(),
|
origin = V(),
|
||||||
probability = 0.025,
|
probability = 0.025,
|
||||||
|
@ -200,7 +200,7 @@ zepha.register_biome(identifier, {
|
||||||
},
|
},
|
||||||
tags = { natural = 1, default = 1 },
|
tags = { natural = 1, default = 1 },
|
||||||
structures = structures,
|
structures = structures,
|
||||||
biome_tint = "#aaed45",
|
biome_tint = "#6effee",
|
||||||
noise = noise
|
noise = noise
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|