mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-25 16:26:18 +00:00
Changed: New DEV command to display a bubble with a long text
This commit is contained in:
parent
4b36ad57cb
commit
d0a87e5210
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