Menu

string_style

onuxy

OnuSystemにおける文字列の修飾

修飾

文字列中に#{}でコマンドを書くことによって文字列の一部に対して修飾を行うことができる機能についての仕様



color:(rgb)

ここは普通#{color:ff0000}ここは赤#{color:ffffff}ここは白


サイズ
size:(size)

ここは普通#{size:64}ここは大


適用・更新

initStyleObjを呼び出すことで適用され、再度呼び出すことで更新できる。

追加

1.
ShowString.h
ShowStringStyle::STRING_STYLE_TYPE
に追加

2.
ShowStrFactory.cpp
ShowStrFactory::InitStyleCommandMap()
に文字列とのマッピングを追加

3.
ShowString.cpp
ShowString::initStyleObj
に動作を記述

4.
Show3DString.cpp
Show3DString::initStyleObj()
に動作を記述


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.