Exemplo n.º 1
0
    public override void Update()
    {
        //  updatePosOrigin();
        ButtonHovered();
        if (Text[(int)Textstate.BACK_TEXT].Clicked() || (Input.GetKeyDown(Input.Keys.Escape) && ActivatedfromExitmenu == true))
        {
            BackbuttonClicked();
        }

        if (Input.GetKeyDown(Input.Keys.P))
        {
            printPosition();
        }

        foreach (ImageBaradjustment Images in ImageBar)
        {
            Images.update();
        }


        Audio.SetFXVolume((float)ImageBar[(int)ImageBarstate.sfxBar_Image].numbervalue / (float)100);
        Audio.SetMusicVolume((float)ImageBar[(int)ImageBarstate.MUSICBar_IMAGE].numbervalue / (float)100);
        Audio.SetMasterVolume((float)ImageBar[(int)ImageBarstate.MasterVolume_image].numbervalue / (float)100);
    }