예제 #1
0
파일: Gui.cs 프로젝트: nedearb/VikingGame
 protected override void updateRenderGroup(Game game, RenderGroup renderGroup)
 {
     renderGroup.addGuiRectangle(buttonDown ? bounds : (bounds - buttonOffset), ColorMaker.gray(.3f));
     renderGroup.addGuiRectangle(bounds + buttonOffset, ColorMaker.gray(.2f));
     renderGroup.addGuiText((buttonDown ? bounds.position : (bounds.position - buttonOffset)) + bounds.halfSize + new Vector2(-(renderGroup.stringSize(text) / 2), -4), text, ColorMaker.white);
 }
예제 #2
0
파일: Menus.cs 프로젝트: nedearb/VikingGame
 protected override void updateRenderGroup(Game game, RenderGroup renderGroup)
 {
     renderGroup.addGuiRectangle(bounds, ColorMaker.black, RenderGroup.makeTextureCoords(0, 0));
 }