aboutsummaryrefslogtreecommitdiff
path: root/clientmods
Commit message (Expand)AuthorAge
* Add mod.conf to preview clientmod (#11020)Elias Fleckenstein2021-03-04
* Lua API: Add register_on_chatcommand to SSM and CSM (#7862)Elijah Duffy2020-10-03
* CSM: Bugfixes to camera:get_pos() and camera:get_fov()sfan52020-05-14
* Various features and fixessfan52020-04-11
* [CSM] Fix and improve minetest.get_language()sfan52019-11-11
* [CSM] Implement minetest.get_csm_restrictions()sfan52019-11-11
* Run on_item_use CSM callback even if item is not marked usablesfan52019-11-11
* [CSM] Expose more env functionssfan52019-11-11
* Be lenient with extra slashes for CSM pathssfan52019-11-09
* [CSM] Remove non-functional minetest.get_day_count()sfan52019-11-09
* Introduce get_modpath() for CSMsfan52019-11-09
* CSM/SSM: Add on_mods_loaded callback (#7411)Loïc Blot2018-06-06
* [CSM] Remove `on_connect` callback (#6941)red-0012018-01-21
* [CSM] Add basic HUD manipulation. (#6067)red-0012018-01-20
* [CSM] Add callback on open inventory (#5793)Vincent Glize2017-10-02
* preview: try to send mod channel messages 4 seconds after joining, not after ...Loic Blot2017-09-26
* Implement mod communication channels (#6351)Loïc Blot2017-09-26
* Create a filesystem abstraction layer for CSM and only allow accessing files ...red-0012017-06-30
* CSM: Fix documentation error for register_on_*_chat_messages (#5917)DS2017-06-09
* [CSM] Add function to get player privileges (#5933)red-0012017-06-07
* [CSM] Fix crash when the minimap is disabled. Caused by e25a38eSmallJoker2017-05-20
* [CSM] add `on_item_use` (#5544)red-0012017-05-06
* Add function to get server info.red-0012017-05-04
* [CSM] Add event on_place_node API lua (#5548)Vincent Glize2017-04-29
* [CSM] Add function to set minimap shape (#5569)bigfoot5472017-04-14
* [CSM] Move `.list_players` and `.disconnect` to builtin. (#5550)red-0012017-04-10
* [CSM] Add event on_connect player API lua (#5540)Vincent Glize2017-04-08
* [CSM] Add function to get the server protocol version. (#5529)red-0012017-04-06
* [CSM] Add function and chat command to disconnect from server. (#5487)red-0012017-04-01
* [CSM] Add function to get player names in range (#5435)bigfoot5472017-03-22
* Give CSM access to use `core.colorize()` (#5113)red-0012017-03-17
* [CSM] Fix minimap problems (#5405)Loïc Blot2017-03-17
* [CSM] Add core.get_timeofday & core.get_day_count env calls (#5401)Loïc Blot2017-03-17
* [CSM] Add minimap API modifiers (#5399)Loïc Blot2017-03-16
* Add ModStorageAPI to client side modding (#5396)Loïc Blot2017-03-16
* Add `get_wielded_item`red-0012017-03-13
* [CSM] Add `on_punchnode` callbackred-0012017-03-13
* [CSM] Add `get_node` and `get_node_or_nil`red-0012017-03-13
* [CSM] Add `on_dignode` callback (#5140)red-0012017-03-13
* [CSM] storage + fixesLoic Blot2017-03-13
* [CSM] implement client side mod loading (#5123)Loïc Blot2017-03-13
l opt">(const v3f &pos, const v3s16 &camera_offset); v3f getSelectionPos() const { return m_selection_pos; } void setSelectionMeshColor(const video::SColor &color) { m_selection_mesh_color = color; } void setSelectedFaceNormal(const v3f &face_normal) { m_selected_face_normal = face_normal; } bool hasElementOfType(HudElementType type); void drawLuaElements(const v3s16 &camera_offset); private: bool calculateScreenPos(const v3s16 &camera_offset, HudElement *e, v2s32 *pos); void drawStatbar(v2s32 pos, u16 corner, u16 drawdir, const std::string &texture, const std::string& bgtexture, s32 count, s32 maxcount, v2s32 offset, v2s32 size = v2s32()); void drawItems(v2s32 upperleftpos, v2s32 screen_offset, s32 itemcount, s32 inv_offset, InventoryList *mainlist, u16 selectitem, u16 direction); void drawItem(const ItemStack &item, const core::rect<s32> &rect, bool selected); void drawCompassTranslate(HudElement *e, video::ITexture *texture, const core::rect<s32> &rect, int way); void drawCompassRotate(HudElement *e, video::ITexture *texture, const core::rect<s32> &rect, int way); Client *client = nullptr; video::IVideoDriver *driver = nullptr; LocalPlayer *player = nullptr; Inventory *inventory = nullptr; ITextureSource *tsrc = nullptr; float m_hud_scaling; // cached minetest setting float m_scale_factor; v3s16 m_camera_offset; v2u32 m_screensize; v2s32 m_displaycenter; s32 m_hotbar_imagesize; // Takes hud_scaling into account, updated by resizeHotbar() s32 m_padding; // Takes hud_scaling into account, updated by resizeHotbar() video::SColor hbar_colors[4]; std::vector<aabb3f> m_selection_boxes; std::vector<aabb3f> m_halo_boxes; v3f m_selection_pos; v3f m_selection_pos_with_offset; scene::IMesh *m_selection_mesh = nullptr; video::SColor m_selection_mesh_color; v3f m_selected_face_normal; video::SMaterial m_selection_material; scene::SMeshBuffer m_rotation_mesh_buffer; enum { HIGHLIGHT_BOX, HIGHLIGHT_HALO, HIGHLIGHT_NONE } m_mode; }; enum ItemRotationKind { IT_ROT_SELECTED, IT_ROT_HOVERED, IT_ROT_DRAGGED, IT_ROT_OTHER, IT_ROT_NONE, // Must be last, also serves as number }; void drawItemStack(video::IVideoDriver *driver, gui::IGUIFont *font, const ItemStack &item, const core::rect<s32> &rect, const core::rect<s32> *clip, Client *client, ItemRotationKind rotation_kind); void drawItemStack( video::IVideoDriver *driver, gui::IGUIFont *font, const ItemStack &item, const core::rect<s32> &rect, const core::rect<s32> *clip, Client *client, ItemRotationKind rotation_kind, const v3s16 &angle, const v3s16 &rotation_speed);