[RELEASE] Radial Menu using DevKit

03/01/2022 22:52 Exoria#1
❒ HI EVERYONE,


[Only registered and activated users can see links. Click Here To Register...]


I saw a very cool feature on Electus Online called Orbit menu which has a range of commands around a circle. These commands make accessing game features easily. So, I managed to implement that feature using DevKit and Electus assets.



Registering a new slot to the menu:
Call the RegisterMenuSlot method in the CIFCircularMenu::OnCreate() method.
* The max slot number you can have is 20.
Code:
RegisterMenuSlot("icon_path", L"Title", L"Description");

Callback method for every slot:
In the SlotCallbackMethod you can define a callback function for each slot in the menu.
Code:
void CIFCircularMenu::SlotCallbackMethod(int slotId)
{
	// register a callback method for each slot here..
    switch (slotId) {
        case 0:
            g_pCGInterface->ShowMessage_Warning(L"SlotCallbackMethod is called 1");
            break;
        case 1:
            g_pCGInterface->ShowMessage_Notice(L"SlotCallbackMethod is called 2");
            break;
	    // ... Up to 19
    }
}

Menu usage:
- Hold the tab button while keeping the mouse arrow on a direction to any slot.
- When the tab button is pressed the selected slot will execute its command.


Note:
This is not the best version of the feature and the code might have some problems, but at least it gives you an idea of how such a feature can be implemented.


❒ DOWNLOAD LINK

● Media: [Only registered and activated users can see links. Click Here To Register...]
● Source files are attached to the topic files.


❒ CREDITS


* The idea and the media assets belongs to ELECTUS ONLINE.
03/02/2022 22:50 Laag#82#2
Nice work bro
03/03/2022 02:02 painmaker_#3
awesome!
03/03/2022 03:15 HypnosĄ#4
That's pretty cool, thank you!
03/03/2022 08:37 Sk4Dius#5
im glad bcs exoria still here after all this years
THANK YOU Bro
can u upload pic ?
03/04/2022 17:19 Beba Army#6
Someone can fix this?
03/04/2022 18:11 machine019#7
nice work
07/05/2025 04:39 hneko#8
That's awesome, man. I'm just getting started with the dev kit. I solved the errors and got it working it looks great Thank you I can use it right as a base for the things I wanna build side to side with the side menu?
07/05/2025 21:45 mtm567#9
nice work