aboutsummaryrefslogtreecommitdiff
path: root/textures/base/pack
ModeNameSize
-rw-r--r--blank.png95logplain
-rw-r--r--camera_btn.png729logplain
-rw-r--r--chat_btn.png399logplain
-rw-r--r--debug_btn.png895logplain
-rw-r--r--down.png1328logplain
-rw-r--r--down_arrow.png373logplain
-rw-r--r--drop_btn.png1035logplain
-rw-r--r--fast_btn.png875logplain
-rw-r--r--fly_btn.png720logplain
-rw-r--r--gear_icon.png1005logplain
-rw-r--r--halo.png144logplain
-rw-r--r--inventory_btn.png343logplain
-rw-r--r--jump_btn.png434logplain
-rw-r--r--left_arrow.png400logplain
-rw-r--r--logo.png12188logplain
-rw-r--r--menu_bg.png124logplain
-rw-r--r--menu_header.png1628logplain
-rw-r--r--minimap_mask_round.png1858logplain
-rw-r--r--minimap_mask_square.png420logplain
-rw-r--r--minimap_overlay_round.png22044logplain
-rw-r--r--minimap_overlay_square.png1686logplain
-rw-r--r--no_screenshot.png140logplain
-rw-r--r--noclip_btn.png1087logplain
-rw-r--r--object_marker_red.png449logplain
-rw-r--r--player_marker.png2178logplain
-rw-r--r--rangeview_btn.png1476logplain
-rw-r--r--rare_controls.png349logplain
-rw-r--r--right_arrow.png396logplain
-rw-r--r--server_flags_creative.png273logplain
-rw-r--r--server_flags_damage.png713logplain
-rw-r--r--server_flags_favorite.png916logplain
-rw-r--r--server_flags_pvp.png1048logplain
-rw-r--r--smoke_puff.png1233logplain
-rw-r--r--sunrisebg.png4231logplain
-rw-r--r--unknown_item.png292logplain
-rw-r--r--unknown_node.png193logplain
-rw-r--r--unknown_object.png254logplain
-rw-r--r--up_arrow.png373logplain
, getServer()->idef()); } catch (LuaError &e) { throw LuaError(std::string(e.what()) + ". item=" + item.name); } } lua_pop(L, 2); // Pop item and error handler return true; } bool ScriptApiItem::item_OnSecondaryUse(ItemStack &item, ServerActiveObject *user) { SCRIPTAPI_PRECHECKHEADER int error_handler = PUSH_ERROR_HANDLER(L); if (!getItemCallback(item.name.c_str(), "on_secondary_use")) return false; LuaItemStack::create(L, item); objectrefGetOrCreate(L, user); PointedThing pointed; pointed.type = POINTEDTHING_NOTHING; pushPointedThing(pointed); PCALL_RES(lua_pcall(L, 3, 1, error_handler)); if (!lua_isnil(L, -1)) { try { item = read_item(L, -1, getServer()->idef()); } catch (LuaError &e) { throw LuaError(std::string(e.what()) + ". item=" + item.name); } } lua_pop(L, 2); // Pop item and error handler return true; } bool ScriptApiItem::item_OnCraft(ItemStack &item, ServerActiveObject *user, const InventoryList *old_craft_grid, const InventoryLocation &craft_inv) { SCRIPTAPI_PRECHECKHEADER int error_handler = PUSH_ERROR_HANDLER(L); lua_getglobal(L, "core"); lua_getfield(L, -1, "on_craft"); LuaItemStack::create(L, item); objectrefGetOrCreate(L, user); // Push inventory list std::vector<ItemStack> items; for (u32 i = 0; i < old_craft_grid->getSize(); i++) { items.push_back(old_craft_grid->getItem(i)); } push_items(L, items); InvRef::create(L, craft_inv); PCALL_RES(lua_pcall(L, 4, 1, error_handler)); if (!lua_isnil(L, -1)) { try { item = read_item(L, -1, getServer()->idef()); } catch (LuaError &e) { throw LuaError(std::string(e.what()) + ". item=" + item.name); } } lua_pop(L, 2); // Pop item and error handler return true; } bool ScriptApiItem::item_CraftPredict(ItemStack &item, ServerActiveObject *user, const InventoryList *old_craft_grid, const InventoryLocation &craft_inv) { SCRIPTAPI_PRECHECKHEADER int error_handler = PUSH_ERROR_HANDLER(L); lua_getglobal(L, "core"); lua_getfield(L, -1, "craft_predict"); LuaItemStack::create(L, item); objectrefGetOrCreate(L, user); //Push inventory list std::vector<ItemStack> items; for (u32 i = 0; i < old_craft_grid->getSize(); i++) { items.push_back(old_craft_grid->getItem(i)); } push_items(L, items);