Пример #1
0
Файл: CoM.cs Проект: bsimser/CoM
    /** Draw overlayed ui.  todo: maybe itemInfo should be part of an always present overlay state */
    public override void DoDraw()
    {
        base.DoDraw();

        // check if the game is loadeding and don't draw if we are...
        if (CurrentState is LoadingState)
        {
            return;
        }

        if (Settings.Advanced.PowerMode && (OptionsButton != null) && (!HideGUI))
        {
            CurrentState.PositionComponent(OptionsButton, 10, -10);
            OptionsButton.Update();
            OptionsButton.Draw();
        }
    }