User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

annconsole [2017/08/20 02:33]
ybalrid created
annconsole [2018/02/17 20:33]
ybalrid
Line 1: Line 1:
 ====== AnnConsole ====== ====== AnnConsole ======
  
-**AnnConsole** is the class that represent the debugging console of the engine. You can think of this console in the same way the ones in PC games since Quake tend to have, that you open with the **~** on your keyboard (**^2** on French AZERTY)+**AnnConsole** is the class that represent the debugging console of the engine. You can think of this console in the same way the ones in PC games since Quake tend to have, that you open with the '**~**' or '​**`**' ​on your keyboard ('**²**' ​on French AZERTY)
  
-There isn't much you can interact with this component by code, except toggling it's visibility (toggle()/​setVisible(bool visibility)),​ adding text directly to the console buffer by using append(std::​string) ​ (if you want to actually log text, you should use [[AnnDebug]]. It will also be displayed on the console). You can clear the console buffer by calling bufferClear().+There isn't much you can interact with this component by code, except toggling it's visibility (toggle()/​setVisible(bool visibility)),​ adding text directly to the console buffer by using append(std::​string) ​ (if you want to actually log text, you should use [[AnnDebug]]. It will also be displayed on the console). You can clear the console buffer by calling ​it'​s ​bufferClear() ​method.
  
-However, this object is interesting because when displayed, it let you interact with the engine via the scripting interface provided by [[AnnScriptManager]]+However, this object is interesting because when displayed, it let you interact with the engine via the scripting interface provided by [[AnnScriptManager]]
 + 
 +Since you have control on the event handling by defining your own [[eventListener]],​ you can make this console non-accessible if you so desire...