Implemented string view changes for internal drawing functions and added wrapping support and parameters for draw functions.
This commit is contained in:
+14
-14
@@ -50,7 +50,7 @@ void State_GameRun::OnStateChange(GameState*prevState){
|
||||
Menu::CloseAllMenus();
|
||||
}
|
||||
game->GetPlayer()->SetState(State::NORMAL);
|
||||
port=ViewPort::rectViewPort({0,0},{72,100},{75,100});
|
||||
port=ViewPort::rectViewPort({0,0},{240,240},{24,24});
|
||||
}
|
||||
void State_GameRun::OnUserUpdate(Crawler*game){
|
||||
game->bossDisplayTimer=std::max(0.f,game->bossDisplayTimer-game->GetElapsedTime());
|
||||
@@ -76,20 +76,20 @@ void State_GameRun::OnUserUpdate(Crawler*game){
|
||||
}
|
||||
void State_GameRun::Draw(Crawler*game){
|
||||
game->RenderHud();
|
||||
//FontTest(); //Enable to test font coloring.
|
||||
FontTest(); //Enable to test font coloring.
|
||||
}
|
||||
|
||||
void State_GameRun::FontTest(){
|
||||
port.DrawStringDecal({8,8},"#FFFFFFThis is a #000066test of hex");
|
||||
port.DrawStringDecal({8,16},"#FF0000This is a #BFA6F9test of hex");
|
||||
port.DrawStringDecal({8,24},"#00FF00This is a #E9A6F9test of hex");
|
||||
port.DrawStringDecal({8,32},"#0000FFThis is a #F9E8A6test of hex");
|
||||
port.DrawShadowStringDecal({8,40},"#FFFFFFThis is a #000066test of hex");
|
||||
port.DrawShadowStringDecal({8,48},"#FF0000This is a #BFA6F9test of hex");
|
||||
port.DrawShadowStringDecal({8,56},"#00FF00This is a #E9A6F9test of hex");
|
||||
port.DrawShadowStringDecal({8,64},"#0000FFThis is a #F9E8A6test of hex");
|
||||
port.DrawShadowStringDecal(VisualNovel::font,{8,72},U"#FFFFFFThis is a #000066test of hex");
|
||||
port.DrawShadowStringDecal(VisualNovel::font,{8,80},U"#FF0000This is a #BFA6F9test of hex");
|
||||
port.DrawShadowStringDecal(VisualNovel::font,{8,88},U"#00FF00This is a #E9A6F9test of hex");
|
||||
port.DrawShadowStringDecal(VisualNovel::font,{8,96},U"#0000FFThis is a #F9E8A6test of hex");
|
||||
port.DrawStringDecal({8,24*0},"#FF0000This is a #BFA6F9test of hex",WHITE,{1,1},72);
|
||||
port.DrawStringDecal({8,24*1},"#00FF00This is a #E9A6F9test of hex",WHITE,{1,1},72);
|
||||
port.DrawStringDecal({8,24*2},"#0000FFThis is a #F9E8A6test of hex",WHITE,{1,1},72);
|
||||
port.DrawShadowStringDecal({8,24*3},"#FFFFFFThis is a #000066test of hex",WHITE,BLACK,{1,1},72);
|
||||
port.DrawShadowStringDecal({8,24*4},"#FF0000This is a #BFA6F9test of hex",WHITE,BLACK,{1,1},72);
|
||||
port.DrawShadowStringPropDecal({8,24*5},"#00FF00This is a #E9A6F9test of hex",WHITE,BLACK,{1,1},72);
|
||||
port.DrawShadowStringPropDecal({8,24*6},"#0000FFThis is a #F9E8A6test of hex",WHITE,BLACK,{1,1},72);
|
||||
/*port.DrawShadowStringDecal(VisualNovel::font,{8,24*7},U"#FFFFFFThis is a #000066test of hex",WHITE,BLACK,{1,1},72);
|
||||
port.DrawShadowStringDecal(VisualNovel::font,{8,24*8},U"#FF0000This is a #BFA6F9test of hex",WHITE,BLACK,{1,1},72);
|
||||
port.DrawShadowStringDecal(VisualNovel::font,{8,24*9},U"#00FF00This is a #E9A6F9test of hex",WHITE,BLACK,{1,1},72);
|
||||
port.DrawShadowStringDecal(VisualNovel::font,{8,24*10},U"#0000FFThis is a #F9E8A6test of hex",WHITE,BLACK,{1,1},72);*/
|
||||
port.drawEdges();
|
||||
}
|
||||
Reference in New Issue
Block a user