From d0a87e5210180ca77dada9a874901ac434202876 Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 19 Dec 2016 13:16:27 +0100 Subject: [PATCH] Changed: New DEV command to display a bubble with a long text --- code/ryzom/client/src/commands.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/code/ryzom/client/src/commands.cpp b/code/ryzom/client/src/commands.cpp index 37c18d697..2d8547bd6 100644 --- a/code/ryzom/client/src/commands.cpp +++ b/code/ryzom/client/src/commands.cpp @@ -3749,6 +3749,23 @@ NLMISC_COMMAND(test, "", "") return true; } +NLMISC_COMMAND(testLongBubble, "To display a bubble with a long text", "") +{ + 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.