"Integrates" Steam with Ursina Engine for python
THIS IS NOT SUPPORTED BY VALVE
steammanager should be imported first in order to work Basic usage:
from steammanager import SteamPath
Imports path to steam no matter where it is installed
from steammanager import steamID
Imports users steam ID, you can use this to open users profile, example:
from steammanager import steamID
import webbrowser
from ursina import *
app=Ursina()
Button("Open my Steam account", on_click=lambda:webbrowser.open((f"steam://url/SteamIDPage/{steamID}")))
app.run()
from steammanager import PersonaName
Imports users Username
Other functions:
-Saves Avatar automatically to directory you choose. how can you set the avatar as texture? its simple:
from steamdata import steamID
from ursina import *
app=Ursina()
Button(model="quad", texture=f"dir where you store the avatar/{steamID}.png")
app.run()
-Supports language settings. usage:
line 29-30
with open("your path to lang files\"+WinCountry+".json", encoding="utf8") as lang:
glang=json.load(lang)
other files:
from steammanager import glang
from ursina import *
app=Ursina()
Text(glang["menu.text"])
app.run()
json name needs to be one of Language Culture Names, json example:
{
"menu.text":"<green>example text"
}
also supports buttons