yyagl.engine.gui package

Submodules

yyagl.engine.gui.browser module

class yyagl.engine.gui.browser.Browser[source]

Bases: object

static open(url)[source]
class yyagl.engine.gui.browser.BrowserStrategy[source]

Bases: object

static open(url)[source]
class yyagl.engine.gui.browser.BrowserStrategyLinux[source]

Bases: yyagl.engine.gui.browser.BrowserStrategy

static open(url)[source]

yyagl.engine.gui.circle module

class yyagl.engine.gui.circle.Circle(size=0.4, pos=(0, 0), parent=None, ray=0.4, thickness=0.05, col_start=(1, 1, 1, 1), col_end=(1, 1, 1, 1))[source]

Bases: yyagl.lib.p3d.gui.P3dFrame, yyagl.gameobject.GameObject

destroy()[source]
property progress

yyagl.engine.gui.cursor module

class yyagl.engine.gui.cursor.MouseCursor(filepath, scale, hotspot)[source]

Bases: yyagl.gameobject.GameObject, yyagl.engine.gui.cursor.MouseCursorFacade

cursor_top()[source]
hide_standard()[source]
on_frame()[source]
on_frame_unpausable()[source]
show_standard()[source]
class yyagl.engine.gui.cursor.MouseCursorFacade[source]

Bases: yyagl.facade.Facade

yyagl.engine.gui.gui module

class yyagl.engine.gui.gui.EngineGui(mediator)[source]

Bases: yyagl.engine.gui.gui.EngineGuiBase

set_resolution(res, check=True, fullscreen=None)[source]
class yyagl.engine.gui.gui.EngineGuiBase(mediator, *args, **kwargs)[source]

Bases: yyagl.gameobject.GuiColleague

property closest_resolution
static init_cls()[source]
static open_browser(url)[source]
property resolutions
set_resolution_check(res)[source]
toggle_fullscreen()[source]

yyagl.engine.gui.imgbtn module

class yyagl.engine.gui.imgbtn.ImgBtn(*args, **kwargs)[source]

Bases: yyagl.lib.p3d.gui.P3dBtn

disable()[source]
enable()[source]

yyagl.engine.gui.mainpage module

class yyagl.engine.gui.mainpage.MainPage(mainpage_props)[source]

Bases: yyagl.engine.gui.page.Page, yyagl.engine.gui.page.PageFacade

gui_cls

alias of MainPageGui

class yyagl.engine.gui.mainpage.MainPageGui(mediator, menu_props, players=[0])[source]

Bases: yyagl.engine.gui.page.PageGui

build(back_btn=True, exit_behav=False)[source]

yyagl.engine.gui.menu module

class yyagl.engine.gui.menu.Menu(menu_props)[source]

Bases: yyagl.gameobject.GameObject, yyagl.engine.gui.menu.MenuFacade

destroy()[source]
gui_cls

alias of MenuGui

logic_cls

alias of MenuLogic

class yyagl.engine.gui.menu.MenuFacade[source]

Bases: yyagl.facade.Facade

class yyagl.engine.gui.menu.MenuGui(mediator, menu_props)[source]

Bases: yyagl.gameobject.GuiColleague

destroy()[source]
class yyagl.engine.gui.menu.MenuLogic(mediator)[source]

Bases: yyagl.gameobject.LogicColleague

destroy()[source]
disable()[source]
disable_navigation()[source]
enable()[source]
enable_navigation()[source]
on_back()[source]
on_push_page(page_code, args=[])[source]
on_quit()[source]
push_page(page)[source]
class yyagl.engine.gui.menu.MenuProps(font_path, text_active_col, text_normal_col, text_err_col, text_scale, btn_size, btn_col, background_img_path, over_sfx_path, click_sfx_path, social_imgs_dirpath, nav)[source]

Bases: yyagl.gameobject.GameObject

property btn_args
property checkbtn_args
property click_sfx
property font
property imgbtn_args
property label_args
property option_args
property over_sfx
property text_args
class yyagl.engine.gui.menu.NavInfo(navinfo_lst)[source]

Bases: object

class yyagl.engine.gui.menu.NavInfoPerPlayer(left, right, up, down, fire)[source]

Bases: object

yyagl.engine.gui.page module

class yyagl.engine.gui.page.Page(menu_props, players=[0])[source]

Bases: yyagl.gameobject.GameObject, yyagl.engine.gui.page.PageFacade

destroy()[source]
event_cls

alias of PageEvent

gui_cls

alias of PageGui

on_back(cls_name, args=[])[source]
on_hide()[source]
on_quit(cls_name)[source]
class yyagl.engine.gui.page.PageEvent(mediator, *args, **kwargs)[source]

Bases: yyagl.gameobject.EventColleague

on_back()[source]
on_quit()[source]
class yyagl.engine.gui.page.PageFacade[source]

Bases: yyagl.facade.Facade

class yyagl.engine.gui.page.PageGui(mediator, menu_props, players=[0])[source]

Bases: yyagl.gameobject.GuiColleague

add_widgets(widgets)[source]
build(back_btn=True, exit_behav=False)[source]
property buttons
destroy()[source]
disable(players)[source]
disable_navigation(players)[source]
enable(players)[source]
enable_navigation(players)[source]
enable_navigation_aux(players)[source]
focus(wdg, player)[source]
hide()[source]
on_arrow(direction, player)[source]
on_enter(player)[source]
on_entry_enter()[source]
on_entry_exit()[source]
show()[source]
transition_enter()[source]
transition_exit(destroy=True)[source]
translate()[source]
update_navigation()[source]

Module contents