Just been gone for two weeks and wanted to finish our plugin.
I dived back into the source for showing maniaexchange lists, but really without documentation I found it hard to get things done, I keep bumbing into stuff where I need to go through other pieces of code to figure out how it is implemented.
First wanted to use cells and such, but I was quickly at a loss there as well.
Is there someone in the team that knows all about ManiaLinks that can help a hand ?
Cheers,
Charly
Manialinks using ManiaControl
Moderators: Wabbitface, Jocy, steeffeen, NADEO
Re: Manialinks using ManiaControl
the framework mainly used for manialinks has been announced in this thread:
http://forum.maniaplanet.com/viewtopic.php?t=26099
on the github page you can find many examples that should be clearer and easier to understand because they are only doing one thing at a time
regarding cells, complete tables, etc. there is something planned but i didn't have the time yet
is there anything special i can help you with?
http://forum.maniaplanet.com/viewtopic.php?t=26099
on the github page you can find many examples that should be clearer and easier to understand because they are only doing one thing at a time
regarding cells, complete tables, etc. there is something planned but i didn't have the time yet
is there anything special i can help you with?
Re: Manialinks using ManiaControl
That is a good resource, gonna dive into that for now.
Don't want to bother people if I don't need to
Don't want to bother people if I don't need to

Re: Manialinks using ManiaControl
ok, I do would like to know if this approach is the way to do it :
The plugin show a small widget that can be clicked on to open a large manialink with a list of sounds that can be played.
So ..
1. has a call to a private function called displayWidget.
2. displayWidget creates a manialinkPageAnswerListener for the action when the widget is pressed to send it to a function called 'showSoundbox'.
3. it then calls a function called displaySoundboxWidget, that actually creates the widget and sends it to
Here's where I'm not sure what to do .. Does the 'showSoundbox' function register another ManialinkPageAnswerListener or does it just shows the list of sounds and the closing is done from the Mainalink?
I did have a look at the Paging examples from the link above you send and I would rather implement that, cause then I do not need to code the paging manually. Is it implemented ?
Cheers,
Charly
The plugin show a small widget that can be clicked on to open a large manialink with a list of sounds that can be played.
So ..
1.
Code: Select all
public function load(ManiaControl $maniaControl)
2. displayWidget creates a manialinkPageAnswerListener for the action when the widget is pressed to send it to a function called 'showSoundbox'.
3. it then calls a function called displaySoundboxWidget, that actually creates the widget and sends it to
Code: Select all
$this->maniaControl->manialinkManager->sendManialink($maniaLink, $login);
I did have a look at the Paging examples from the link above you send and I would rather implement that, cause then I do not need to code the paging manually. Is it implemented ?
Cheers,
Charly
Re: Manialinks using ManiaControl
you should register for the manialink page answer on startup/load because that's a one-time actionchco wrote:1.has a call to a private function called displayWidget.Code: Select all
public function load(ManiaControl $maniaControl)
2. displayWidget creates a manialinkPageAnswerListener for the action when the widget is pressed to send it to a function called 'showSoundbox'.
so putting that call into a function named 'showSoundbox' might lead to unnecessary registering later on
the sendManialink method does only the sending of the xml, nothing elsechco wrote:3. it then calls a function called displaySoundboxWidget, that actually creates the widget and sends it toHere's where I'm not sure what to do .. Does the 'showSoundbox' function register another ManialinkPageAnswerListener or does it just shows the list of sounds and the closing is done from the Mainalink?Code: Select all
$this->maniaControl->manialinkManager->sendManialink($maniaLink, $login);
if you need a closing behavior you different ways to do that
the commin approach is to add a close button with an action for that you listen, when the user triggers the action by clicking on the button you send a new empty manialink with the same id which will overwrite and discard the old widget
i don't really get your question, sorry ^^chco wrote:I did have a look at the Paging examples from the link above you send and I would rather implement that, cause then I do not need to code the paging manually. Is it implemented ?
the examples work in maniacontrol as well, because the framework is used in the same state as on github
so it should be quite easy to create a fancy paging while building the manialink without any further work of the controller
Re: Manialinks using ManiaControl
Thanks for the info!
Had a chat with Kremsy last night as well.
Gonna have a go at it now, see where I end up
Cheers Steeffeen!
Had a chat with Kremsy last night as well.
Gonna have a go at it now, see where I end up

Cheers Steeffeen!
Re: Manialinks using ManiaControl
Got this working finally. Thanks for the info Steeffeen and Kremsy for taking the time to help me out.
Who is online
Users browsing this forum: No registered users and 1 guest