mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Changed: New DEV command to display a bubble with a long text
--HG-- branch : develop
This commit is contained in:
parent
31a540b35d
commit
e186c7796b
1 changed files with 17 additions and 0 deletions
|
@ -3749,6 +3749,23 @@ NLMISC_COMMAND(test, "", "")
|
|||
return true;
|
||||
}
|
||||
|
||||
NLMISC_COMMAND(testLongBubble, "To display a bubble with a long text", "<entity>")
|
||||
{
|
||||
if (args.size() != 1) return false;
|
||||
uint entityId;
|
||||
fromString(args[0], entityId);
|
||||
|
||||
CInterfaceManager *pIM = CInterfaceManager::getInstance();
|
||||
ucstring text = "test\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\ntest\n";
|
||||
uint duration = CWidgetManager::getInstance()->getSystemOption(CWidgetManager::OptionTimeoutBubbles).getValSInt32();
|
||||
|
||||
CEntityCL *entity = EntitiesMngr.entity(entityId);
|
||||
if (entity)
|
||||
InSceneBubbleManager.chatOpen(entity->dataSetId(), text, duration);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------
|
||||
/// Macro to set the new dist to front(back or side) for a given sheet.
|
||||
|
|
Loading…
Reference in a new issue