mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
[CSM] Add function to set minimap shape (#5569)
* [CSM] Add function to set minimap shape Also deprecates `toggle_shape`. * Oh fish, I messed that one up! * Fix Style * Sorry, I missed something I still had the `luamethod` call in there! * Add getters * Remove extra line * Remove useless variable Please review again @nerzhul . Thanks! * Satisfy nerzhul
This commit is contained in:
@@ -45,6 +45,11 @@ enum MinimapMode {
|
||||
MINIMAP_MODE_COUNT,
|
||||
};
|
||||
|
||||
enum MinimapShape {
|
||||
MINIMAP_SHAPE_SQUARE,
|
||||
MINIMAP_SHAPE_ROUND,
|
||||
};
|
||||
|
||||
struct MinimapModeDef {
|
||||
bool is_radar;
|
||||
u16 scan_height;
|
||||
@@ -128,6 +133,8 @@ public:
|
||||
void setMinimapMode(MinimapMode mode);
|
||||
MinimapMode getMinimapMode() const { return data->mode; }
|
||||
void toggleMinimapShape();
|
||||
void setMinimapShape(MinimapShape shape);
|
||||
MinimapShape getMinimapShape();
|
||||
|
||||
|
||||
video::ITexture *getMinimapTexture();
|
||||
|
Reference in New Issue
Block a user