The following warnings occurred:
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.18 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/printthread.php(287) : eval()'d code 2 errorHandler->error_callback
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



Mario Kart Wii Gecko Codes, Cheats, & Hacks
Customizing Hide-and-Seek-Mod (General Assembly related Questions) - Printable Version

+- Mario Kart Wii Gecko Codes, Cheats, & Hacks (https://mariokartwii.com)
+-- Forum: Hacks/Modding (https://mariokartwii.com/forumdisplay.php?fid=14)
+--- Forum: Code Support / Help / Requests (https://mariokartwii.com/forumdisplay.php?fid=61)
+--- Thread: Customizing Hide-and-Seek-Mod (General Assembly related Questions) (/showthread.php?tid=2010)

Pages: 1 2


RE: Customizing Hide-and-Seek-Mod (General Assembly related Questions) - tefo7 - 01-29-2023

Thank you for the great ressources you gave me. I have now managed to get everything done.


RE: Customizing Hide-and-Seek-Mod (General Assembly related Questions) - tefo7 - 01-29-2023

I was wondering how to disable certain player icons on the minimap.

Let's say you want to show the minimap for a hider and hide every other hider on the map (so what he/she sees is him-/herself and the seekers but not the location of other hiders)

Where are minimap icons initialized and how would I hide those particular icons?


RE: Customizing Hide-and-Seek-Mod (General Assembly related Questions) - tefo7 - 01-30-2023

I have thourougly studied all the documentation and as I already have access to the minimap object I think it'd be best to work with that.

I have found
Code:
  /* 0x68 */ UIControlCollection m_children;

Source: https://github.com/mkwcat/mkw-tournament-museum/blob/master/include/mkw/UI/UIControl.h#L98

and

Code:
struct UIControlCollection {
    UIControlCollection();
    ~UIControlCollection();

    void init(UIControl* parent, int count);
    void set(int index, UIControl* control);

    /* 0x00 */ UIControl** m_children;
    /* 0x04 */ UIControl** m_children2;
    /* 0x08 */ UIControl* m_parent;
    /* 0x0C */ UIControl* m_root;
    /* 0x10 */ int m_count;
};

Source: https://github.com/mkwcat/mkw-tournament-museum/blob/master/include/mkw/UI/UIControl.h#L32

So I assume this way I could access the child objects (PlayerIcons) of the minimap.

What I still have trouble understanding is:
1) How do I iterate through all child objects?
2) How do I get the pids so I can add those objects to the data for each individual player?