├── AuroraRepo
├── Main.lua
├── MenuSystem.lua
├── Repos.ini
└── icon.png
├── Filters
├── ConnectX.ini
├── ConnectX.lua
├── Developers.ini
├── Developers.lua
├── HideBackups.ini
├── HideBackups.lua
├── HideKinect.ini
├── HideKinect.lua
├── HideMultiDisc.ini
├── HideMultiDisc.lua
├── NamesFilter.ini
├── NamesFilter.lua
├── OnlyLocalCoop.ini
├── OnlyLocalCoop.lua
├── PlayedGames.ini
├── PlayedGames.lua
├── Publishers.ini
├── Publishers.lua
├── Xbox360XBLA.ini
└── Xbox360XBLA.lua
├── README.md
├── Sorts
├── LastPlayed.ini
├── LastPlayed.lua
├── ReleaseDate.ini
├── ReleaseDate.lua
├── TitleID.ini
├── TitleID.lua
├── TypeAndName.ini
└── TypeAndName.lua
├── Subtitles
├── CapabilitiesFlag.ini
├── CapabilitiesFlag.lua
├── CapabilitiesOffline.ini
├── CapabilitiesOffline.lua
├── CapabilitiesOnline.ini
├── CapabilitiesOnline.lua
├── GameDataPath.ini
├── GameDataPath.lua
├── ReleaseDate.ini
└── ReleaseDate.lua
└── UtilityScripts
├── ConsoleInfo
├── Main.lua
└── icon.png
├── DBCleaner
├── Main.lua
└── icon.png
├── DiscInstaller
├── icon
│ ├── frames.png
│ ├── icon.xui
│ └── icon.xur
└── main.lua
├── DiscRipper
├── Main.lua
└── icon.png
├── ExportGamesList
├── Main.lua
└── icon.png
├── FixClonedDrive
├── Main.lua
└── icon.png
├── FreeMyDisk
├── icon.png
└── main.lua
├── HomebrewStore
├── Main.lua
├── MenuSystem.lua
├── Repos
│ └── consolemods.org.ini
└── icon.png
├── LanguagePackDownloader
├── Main.lua
├── MenuSystem.lua
├── icon.png
└── ini
│ ├── 0.6.ini
│ └── list.ini
├── LiNKTop5
├── AuroraUI.lua
├── gizmo.lua
├── icon.png
├── json
│ └── JSON.lua
├── main.lua
├── scene.xui
├── scene.xur
├── skin.xui
└── skin.xur
├── NetworkSpeedCheck
├── AuroraUI.lua
├── GizmoOption.lua
├── GizmoResult.lua
├── Main.lua
├── data
│ └── uploadData.txt
├── helper
│ └── helper.lua
├── icon
│ ├── icon.png
│ ├── icon.xui
│ └── icon.xur
└── skin
│ ├── Images
│ └── Visuals
│ │ ├── XuiCheckbox
│ │ ├── Checkbox.Box.Disabled.Blur.png
│ │ ├── Checkbox.Box.Disabled.Focus.png
│ │ ├── Checkbox.Box.Enabled.Blur.png
│ │ ├── Checkbox.Box.Enabled.Focus.png
│ │ ├── Checkbox.Check.Disabled.Blur.png
│ │ ├── Checkbox.Check.Disabled.Focus.png
│ │ ├── Checkbox.Check.Enabled.Blur.png
│ │ └── Checkbox.Check.Enabled.Focus.png
│ │ └── XuiSlider
│ │ ├── Slider.Bullet.Disabled.Blur.png
│ │ ├── Slider.Bullet.Disabled.Focus.png
│ │ ├── Slider.Bullet.Enabled.Blur.png
│ │ ├── Slider.Bullet.Enabled.Focus.png
│ │ ├── Slider.Line.Disabled.Blur.png
│ │ ├── Slider.Line.Disabled.Focus.png
│ │ ├── Slider.Line.Enabled.Blur.png
│ │ └── Slider.Line.Enabled.Focus.png
│ ├── images
│ ├── downstreamArrow.png
│ └── upstreamArrow.png
│ ├── options.xui
│ ├── options.xur
│ ├── result.xui
│ ├── result.xur
│ ├── skin.xui
│ └── skin.xur
├── SkinDownloader
├── AuroraUI.lua
├── Instructions.txt
├── JSON.lua
├── MenuSystem.lua
├── gizmo.lua
├── icon.png
├── main.lua
├── scene.xur
└── skin.xur
├── TempViewer
├── Main.lua
└── icon.png
├── TemperatureManager
├── AuroraUI.lua
├── Main.lua
├── gizmo.lua
└── skin
│ ├── Images
│ └── Visuals
│ │ ├── XuiCheckbox
│ │ ├── Checkbox.Box.Disabled.Blur.png
│ │ ├── Checkbox.Box.Disabled.Focus.png
│ │ ├── Checkbox.Box.Enabled.Blur.png
│ │ ├── Checkbox.Box.Enabled.Focus.png
│ │ ├── Checkbox.Check.Disabled.Blur.png
│ │ ├── Checkbox.Check.Disabled.Focus.png
│ │ ├── Checkbox.Check.Enabled.Blur.png
│ │ └── Checkbox.Check.Enabled.Focus.png
│ │ └── XuiSlider
│ │ ├── Slider.Bullet.Disabled.Blur.png
│ │ ├── Slider.Bullet.Disabled.Focus.png
│ │ ├── Slider.Bullet.Enabled.Blur.png
│ │ ├── Slider.Bullet.Enabled.Focus.png
│ │ ├── Slider.Line.Disabled.Blur.png
│ │ ├── Slider.Line.Disabled.Focus.png
│ │ ├── Slider.Line.Enabled.Blur.png
│ │ └── Slider.Line.Enabled.Focus.png
│ ├── icon.png
│ ├── scene.xui
│ ├── scene.xur
│ ├── skin.xui
│ └── skin.xur
├── TextViewer
├── AuroraUI.lua
├── Main.lua
├── MenuSystem.lua
├── gizmo.lua
├── icon
│ └── icon.png
└── skin
│ ├── scene.xui
│ ├── scene.xur
│ ├── skin.xui
│ └── skin.xur
├── TuLocationFix
├── Main.lua
└── icon
│ └── icon.png
├── UnityLiNKInfo
├── AuroraUI.lua
├── Main.lua
├── MenuSystem.lua
├── icon
│ ├── icon.png
│ ├── icon.xui
│ └── icon.xur
├── json
│ └── JSON.lua
└── skin
│ ├── skin.xui
│ └── skin.xur
├── Weather
├── AuroraUI.lua
├── gizmo.lua
├── icon
│ ├── icon.xui
│ ├── icon.xur
│ ├── icon_anim.png
│ └── weather.png
├── json
│ └── JSON.lua
├── main.lua
└── skin
│ ├── images
│ ├── LeftBumper.png
│ └── RightBumper.png
│ ├── weather
│ ├── chanceflurries.png
│ ├── chancerain.png
│ ├── chancesleet.png
│ ├── chancesnow.png
│ ├── chancetstorms.png
│ ├── clear.png
│ ├── cloudy.png
│ ├── flurries.png
│ ├── hazy.png
│ ├── mostlycloudy.png
│ ├── mostlysunny.png
│ ├── partlycloudy.png
│ ├── partlysunny.png
│ ├── rain.png
│ ├── sleet.png
│ ├── snow.png
│ ├── sunny.png
│ ├── tstorms.png
│ └── unknown.png
│ ├── weatherscene.xur
│ └── weatherskin.xur
└── XefuSpoofer
├── Main.lua
├── MenuSystem.lua
└── icon.png
/AuroraRepo/MenuSystem.lua:
--------------------------------------------------------------------------------
1 | local TopLevelMenu = {}
2 | TopLevelMenu.SubMenu = {}
3 | local TitleText = "Menu";
4 | local EmptyText = "No Menu Available";
5 | local ExitOnCancel = false;
6 | local GoBackText = "Go Back";
7 | local SortAlphaBetically = true;
8 |
9 | _ShowMenu = function(menuItem)
10 | local menu = {}
11 | if SortAlphaBetically then
12 | table.sort(menuItem, function(a, b) return type(a) == "table" and type(b) == "table" and a.Name < b.Name; end);
13 | end
14 | for k, v in ipairs(menuItem) do
15 | if type(v) == "table" then
16 | menu[k] = v.Name;
17 | else
18 | if GoBackText ~= nil and GoBackText ~= "" then
19 | menu[k] = GoBackText; -- Only show the "Go Back" option if we actually have it set to something
20 | end
21 | end
22 | end
23 | local ret = Script.ShowPopupList(TitleText, EmptyText, menu);
24 | if ret.Canceled == true then
25 | if ExitOnCancel == true then
26 | return nil, menuItem, ret.Canceled, nil;
27 | end
28 | elseif ret.Selected.Key == 1 and ret.Selected.Value == GoBackText then
29 | if menuItem.Parent == nil or menuItem.Parent.Parent == nil then
30 | return nil, menuItem, ret.Canceled, nil;
31 | else
32 | menu = nil;
33 | ret = nil;
34 | return _ShowMenu(menuItem.Parent.Parent);
35 | end
36 | else
37 | ret = menuItem[ret.Selected.Key];
38 | if ret.SubMenu == nil then
39 | return ret.Data, menuItem, false, ret;
40 | else
41 | menu = nil;
42 | return _ShowMenu(ret.SubMenu);
43 | end
44 | end
45 | end
46 |
47 | Menu = {
48 | ShowMenu = function(menuItem)
49 | return _ShowMenu(menuItem); -- Call the actual function^
50 | end,
51 | ShowMainMenu = function()
52 | return _ShowMenu(TopLevelMenu.SubMenu); -- Show the main menu (TopLevelMenu.SubMenu)
53 | end,
54 | ResetMenu = function()
55 | TopLevelMenu.SubMenu = {} -- Reset the menu to be empty
56 | TitleText = "Menu"; -- Reset title to the default one
57 | EmptyText = "No Menu Available"; -- Reset empty text to the default one
58 | ExitOnCancel = false; -- Reset ExitOnCancel to it's default value
59 | GoBackText = "Go Back"; -- Reset GoBackText to it's default value
60 | end,
61 | MakeMenuItem = function(displayName, data)
62 | return {
63 | Name = displayName; -- Set the Name Property to be displayed in the menu
64 | Data = data; -- Set the data property, if any...
65 | }
66 | end,
67 | AddSubMenuItem = function(menuItem, subMenuItem)
68 | if menuItem.SubMenu == nil then -- Check if we have a SubMenu already or not
69 | menuItem.SubMenu = {} -- Add the SubMenu table
70 | menuItem.SubMenu[1] = GoBackText; -- Add a "Go Back" to the Sub Menu
71 | menuItem.SubMenu.Parent = menuItem; -- Set the parent of the SubMenu to the menu we're adding it to
72 | end
73 | subMenuItem.Parent = menuItem.SubMenu; -- Set the parent of the subMenuItem to the SubMenu table so we can go further up the chain
74 | table.insert(menuItem.SubMenu, subMenuItem); -- Insert the subMenuItem to the menu
75 | end,
76 | AddMainMenuItem = function(menuItem)
77 | if TopLevelMenu.SubMenu == nil then -- Check if we have a SubMenu already or not
78 | TopLevelMenu.SubMenu = {} -- Add the SubMenu table
79 | TopLevelMenu.SubMenu.Parent = TopLevelMenu; -- Set SubMenu parent to TopLevelMenu
80 | end
81 | menuItem.Parent = TopLevelMenu.SubMenu; -- Set the parent of the subMenuItem to the SubMenu table so we can go further up the chain
82 | table.insert(TopLevelMenu.SubMenu, menuItem); -- Insert the menuItem to the menu
83 | end,
84 | SetTitle = function(title)
85 | TitleText = title; -- Set the TitleText
86 | end,
87 | SetEmptyText = function(emptyText)
88 | EmptyText = emptyText; -- Set the text to be shown if the menu is empty
89 | end,
90 | SetExitOnCancel = function(exitOnCancel)
91 | ExitOnCancel = exitOnCancel == true; -- Set the flag that tells the menu system to exit upon being canceled (B being pressed)
92 | end,
93 | SetGoBackText = function(goBackText)
94 | GoBackText = goBackText; -- Set the text for the return/back menu item
95 | end,
96 | SetSortAlphaBetically = function(sortAlphaBetically)
97 | SortAlphaBetically = sortAlphaBetically == true; -- Set the flag that tells us if we should sort alphabetically
98 | end,
99 | IsMainMenu = function(menu)
100 | return menu == TopLevelMenu.SubMenu;
101 | end
102 | }
103 |
104 | return Menu;
105 |
--------------------------------------------------------------------------------
/AuroraRepo/Repos.ini:
--------------------------------------------------------------------------------
1 | [Global]
2 | updateurl=http://xboxunity.net/as/Update.ini
3 | [Utility Scripts]
4 | name=Utility Scripts
5 | path=Game:\User\Scripts\Utility\
6 | iniurl=http://xboxunity.net/as/UtilityScripts.ini
7 | type=utility script
8 | refresh=true
9 | [Filters]
10 | name=Filters
11 | path=Game:\User\Scripts\Content\Filters\
12 | iniurl=http://xboxunity.net/as/Filters.ini
13 | type=filter
14 | reload=true
15 | [Subtitles]
16 | name=Subtitles
17 | path=Game:\User\Scripts\Content\Subtitles\
18 | iniurl=http://xboxunity.net/as/Subtitles.ini
19 | type=subtitle
20 | reload=true
21 | [Sorts]
22 | name=Sorting Scripts
23 | path=Game:\User\Scripts\Content\Sorts\
24 | iniurl=http://xboxunity.net/as/Sorts.ini
25 | type=sorting script
26 | reload=true
27 |
--------------------------------------------------------------------------------
/AuroraRepo/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/AuroraRepo/icon.png
--------------------------------------------------------------------------------
/Filters/ConnectX.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=ConnectX
2 | scriptAuthor=Swizzy
3 | scriptDescription=A collection of filters related to ConnectX
--------------------------------------------------------------------------------
/Filters/ConnectX.lua:
--------------------------------------------------------------------------------
1 | GameListFilterCategories.User["Only ConnectX"] = function(Content)
2 | return (string.lower(Content.Root) == "connx:\\")
3 | end
4 |
5 | GameListFilterCategories.User["Hide ConnectX"] = function(Content)
6 | return (string.lower(Content.Root) ~= "connx:\\")
7 | end
--------------------------------------------------------------------------------
/Filters/Developers.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=Developers
2 | scriptAuthor=Swizzy
3 | scriptDescription=A collection of filters for some common game developers
--------------------------------------------------------------------------------
/Filters/Developers.lua:
--------------------------------------------------------------------------------
1 | local function IsEaGame(Content)
2 | if (string.lower(string.sub(Content.Developer, 0, 15)) == "electronic arts") then return true end
3 | if (string.lower(string.sub(Content.Developer, 0, 2)) == "ea") then return true end --return (string.lower(string.sub(Content.Developer, 3, 6)) ~= "sports") end
4 | return false
5 | end
6 |
7 | local function IsUbisoftGame(Content) return (string.lower(string.sub(Content.Developer, 0, 7)) == "ubisoft") end
8 |
9 | local function IsWarnerBrosGame(Content)
10 | if (string.lower(string.sub(Content.Developer, 0, 11)) == "warner bros") then return true end
11 | if (string.lower(string.sub(Content.Developer, 0, 8)) == "wb games") then return true end
12 | if (string.lower(string.sub(Content.Developer, 0, 15)) == "warner brothers") then return true end
13 | return false
14 | end
15 |
16 | local function IsTHQGame(Content) return (string.lower(string.sub(Content.Developer, 0, 3)) == "thq") end
17 |
18 | local function IsActivisionGame(Content) return (string.lower(string.sub(Content.Developer, 0, 10)) == "activision") end
19 |
20 | local function IsBandaiNamcoGame(Content)
21 | if (string.lower(string.sub(Content.Developer, 0, 6)) == "bandai") then return true end
22 | if (string.lower(string.sub(Content.Developer, 0, 5)) == "namco") then return true end
23 | return false
24 | end
25 |
26 | local function IsCapcomGame(Content) return (string.lower(string.sub(Content.Developer, 0, 6)) == "capcom") end
27 |
28 | local function IsCodeMastersGame(Content) return (string.lower(string.sub(Content.Developer, 0, 11)) == "codemasters") end
29 |
30 | local function IsKonamiGame(Content) return (string.lower(string.sub(Content.Developer, 0, 6)) == "konami") end
31 |
32 | local function IsMicrosoftGame(Content)
33 | if (string.lower(string.sub(Content.Developer, 0, 9)) == "microsoft") then return true end
34 | if (string.lower(string.sub(Content.Developer, 0, 3)) == "mgs") then return true end
35 | return false
36 | end
37 |
38 | local function IsPopCapGame(Content) return (string.lower(string.sub(Content.Developer, 0, 6)) == "popcap") end
39 |
40 | local function IsRockStarGame(Content) return (string.lower(string.sub(Content.Developer, 0, 8)) == "rockstar") end
41 |
42 | local function IsSegaGame(Content) return (string.lower(string.sub(Content.Developer, 0, 4)) == "sega") end
43 |
44 | local function IsSquareEnixGame(Content) return (string.lower(string.sub(Content.Developer, 0, 6)) == "square") end
45 |
46 | local function IsBethesdaGame(Content) return (string.lower(string.sub(Content.Developer, 0, 8)) == "bethesda") end
47 |
48 | local function IsEidosGame(Content) return (string.lower(string.sub(Content.Developer, 0, 5)) == "eidos") end
49 |
50 | local function IsDisneyGame(Content) return (string.lower(string.sub(Content.Developer, 0, 6)) == "disney") end
51 |
52 | GameListFilterCategories.Developers = {}
53 | GameListFilterCategories.Developers["EA"] = function(Content) return IsEaGame(Content) end
54 | GameListFilterCategories.Developers["Ubisoft"] = function(Content) return IsUbisoftGame(Content) end
55 | GameListFilterCategories.Developers["Warner Bros"] = function(Content) return IsWarnerBrosGame(Content) end
56 | GameListFilterCategories.Developers["THQ"] = function(Content) return IsTHQGame(Content) end
57 | GameListFilterCategories.Developers["Activision"] = function(Content) return IsActivisionGame(Content) end
58 | GameListFilterCategories.Developers["Bandai Namco"] = function(Content) return IsBandaiNamcoGame(Content) end
59 | GameListFilterCategories.Developers["Capcom"] = function(Content) return IsCapcomGame(Content) end
60 | GameListFilterCategories.Developers["Codemasters"] = function(Content) return IsCodeMastersGame(Content) end
61 | GameListFilterCategories.Developers["Konami"] = function(Content) return IsKonamiGame(Content) end
62 | GameListFilterCategories.Developers["Microsoft"] = function(Content) return IsMicrosoftGame(Content) end
63 | GameListFilterCategories.Developers["PopCap"] = function(Content) return IsPopCapGame(Content) end
64 | GameListFilterCategories.Developers["Rockstar"] = function(Content) return IsRockStarGame(Content) end
65 | GameListFilterCategories.Developers["Sega"] = function(Content) return IsSegaGame(Content) end
66 | GameListFilterCategories.Developers["Square Enix"] = function(Content) return IsSquareEnixGame(Content) end
67 | GameListFilterCategories.Developers["Bethesda"] = function(Content) return IsBethesdaGame(Content) end
68 | GameListFilterCategories.Developers["Eidos"] = function(Content) return IsEidosGame(Content) end
69 | GameListFilterCategories.Developers["Disney"] = function(Content) return IsDisneyGame(Content) end
70 |
--------------------------------------------------------------------------------
/Filters/HideBackups.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=Hide Backups
2 | scriptAuthor=Swizzy
3 | scriptDescription=A filter to hide Backups (NXE2GOD backups aswell as anything ending with ".bak")
--------------------------------------------------------------------------------
/Filters/HideBackups.lua:
--------------------------------------------------------------------------------
1 | GameListFilterCategories.User["Hide Backups"] = function(Content)
2 | -- Matches NXE2GOD backups
3 | if (string.match(Content.Directory, "0000000000000000\\[a-fA-F0-9][a-fA-F0-9][a-fA-F0-9][a-fA-F0-9][a-fA-F0-9][a-fA-F0-9][a-fA-F0-9][a-fA-F0-9]\\00007000\\backup") ~= nil) then
4 | return false -- Don't show this item
5 | end
6 | -- Return if this game ends with .bak
7 | return not (string.lower(string.sub(Content.Executable, -4)) == ".bak")
8 | end
9 |
--------------------------------------------------------------------------------
/Filters/HideKinect.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=Hide Kinect
2 | scriptAuthor=Swizzy
3 | scriptDescription=A filter to hide Kinect compatible titles
--------------------------------------------------------------------------------
/Filters/HideKinect.lua:
--------------------------------------------------------------------------------
1 | GameListFilterCategories.User["Hide Kinect"] = function(Content)
2 | -- Return if this game isn't a kinect game
3 | return not bit32.btest( Content.Flags, ContentFlag.KinectCompatible )
4 | end
--------------------------------------------------------------------------------
/Filters/HideMultiDisc.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=Hide Multi Disc
2 | scriptAuthor=Swizzy
3 | scriptDescription=A filter to hide disc2+ for titles that have multiple discs
--------------------------------------------------------------------------------
/Filters/HideMultiDisc.lua:
--------------------------------------------------------------------------------
1 | GameListFilterCategories.User["Hide MultiDisc"] = function(Content)
2 | -- Return if this game is disc number 1
3 | return Content.DiscNum <= 1
4 | end
--------------------------------------------------------------------------------
/Filters/NamesFilter.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=Name Filter
2 | scriptAuthor=Swizzy
3 | scriptDescription=A collection of filters for titles beginning with the letters A to Z aswell as a special filter for everything else
--------------------------------------------------------------------------------
/Filters/NamesFilter.lua:
--------------------------------------------------------------------------------
1 | GameListFilterCategories.NameFilter = {}
2 | GameListFilterCategories.NameFilter["A - F"] = {}
3 | GameListFilterCategories.NameFilter["A - F"]["A"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "A") end
4 | GameListFilterCategories.NameFilter["A - F"]["B"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "B") end
5 | GameListFilterCategories.NameFilter["A - F"]["C"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "C") end
6 | GameListFilterCategories.NameFilter["A - F"]["D"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "D") end
7 | GameListFilterCategories.NameFilter["A - F"]["E"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "E") end
8 | GameListFilterCategories.NameFilter["A - F"]["F"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "F") end
9 | GameListFilterCategories.NameFilter["G - L"] = {}
10 | GameListFilterCategories.NameFilter["G - L"]["G"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "G") end
11 | GameListFilterCategories.NameFilter["G - L"]["H"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "H") end
12 | GameListFilterCategories.NameFilter["G - L"]["I"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "I") end
13 | GameListFilterCategories.NameFilter["G - L"]["J"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "J") end
14 | GameListFilterCategories.NameFilter["G - L"]["K"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "K") end
15 | GameListFilterCategories.NameFilter["G - L"]["L"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "L") end
16 | GameListFilterCategories.NameFilter["M - R"] = {}
17 | GameListFilterCategories.NameFilter["M - R"]["M"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "M") end
18 | GameListFilterCategories.NameFilter["M - R"]["N"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "N") end
19 | GameListFilterCategories.NameFilter["M - R"]["O"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "O") end
20 | GameListFilterCategories.NameFilter["M - R"]["P"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "P") end
21 | GameListFilterCategories.NameFilter["M - R"]["Q"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "Q") end
22 | GameListFilterCategories.NameFilter["M - R"]["R"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "R") end
23 | GameListFilterCategories.NameFilter["S - X"] = {}
24 | GameListFilterCategories.NameFilter["S - X"]["S"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "S") end
25 | GameListFilterCategories.NameFilter["S - X"]["T"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "T") end
26 | GameListFilterCategories.NameFilter["S - X"]["U"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "U") end
27 | GameListFilterCategories.NameFilter["S - X"]["V"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "V") end
28 | GameListFilterCategories.NameFilter["S - X"]["W"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "W") end
29 | GameListFilterCategories.NameFilter["S - X"]["X"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "X") end
30 | GameListFilterCategories.NameFilter["Y - Z"] = {}
31 | GameListFilterCategories.NameFilter["Y - Z"]["Y"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "Y") end
32 | GameListFilterCategories.NameFilter["Y - Z"]["Z"] = function(Content) return (string.upper(string.sub(Content.Name, 0, 1)) == "Z") end
33 | GameListFilterCategories.NameFilter["Other"] = function(Content) return (string.match(string.sub(Content.Name, 0, 1), "[a-zA-Z]") == nil) end
--------------------------------------------------------------------------------
/Filters/OnlyLocalCoop.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=Only Local Co-Op
2 | scriptAuthor=Swizzy
3 | scriptDescription=A filter that filters on the flags downloaded from xbox.com regarding local co-op
--------------------------------------------------------------------------------
/Filters/OnlyLocalCoop.lua:
--------------------------------------------------------------------------------
1 | GameListFilterCategories.User["Only Local Co-Op Games"] = function(Content)
2 | minco = bit32.rshift(bit32.band(Content.CapabilitiesOffline.LowPart, 0x00FF0000), 16)
3 | maxco = bit32.rshift(bit32.band(Content.CapabilitiesOffline.LowPart, 0xFF000000), 24)
4 | return ((minco > 1 or minco == 1) and (maxco > 2 or maxco == 2))
5 | end
--------------------------------------------------------------------------------
/Filters/PlayedGames.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=Played Games
2 | scriptAuthor=Swizzy
3 | scriptDescription=A collection of filters for games you have or haven't played
--------------------------------------------------------------------------------
/Filters/PlayedGames.lua:
--------------------------------------------------------------------------------
1 | GameListFilterCategories.User["Only Played Games"] = function(Content)
2 | return ((Content.LastPlayed.HighPart ~= 0) and (Content.LastPlayed.LowPart ~= 0))
3 | end
4 |
5 | GameListFilterCategories.User["Hide Played Games"] = function(Content)
6 | return ((Content.LastPlayed.HighPart == 0) and (Content.LastPlayed.LowPart == 0))
7 | end
8 |
--------------------------------------------------------------------------------
/Filters/Publishers.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=Publishers
2 | scriptAuthor=Swizzy
3 | scriptDescription=A collection of filters for some common game publishers
--------------------------------------------------------------------------------
/Filters/Publishers.lua:
--------------------------------------------------------------------------------
1 | local function IsEaGame(Content)
2 | if (string.lower(string.sub(Content.Publisher, 0, 15)) == "electronic arts") then return true end
3 | if (string.lower(string.sub(Content.Publisher, 0, 2)) == "ea") then return true end --return (string.lower(string.sub(Content.Publisher, 3, 6)) ~= "sports") end
4 | return false
5 | end
6 |
7 | local function IsUbisoftGame(Content) return (string.lower(string.sub(Content.Publisher, 0, 7)) == "ubisoft") end
8 |
9 | local function IsWarnerBrosGame(Content)
10 | if (string.lower(string.sub(Content.Publisher, 0, 11)) == "warner bros") then return true end
11 | if (string.lower(string.sub(Content.Publisher, 0, 8)) == "wb games") then return true end
12 | if (string.lower(string.sub(Content.Publisher, 0, 15)) == "warner brothers") then return true end
13 | return false
14 | end
15 |
16 | local function IsTHQGame(Content) return (string.lower(string.sub(Content.Publisher, 0, 3)) == "thq") end
17 |
18 | local function IsActivisionGame(Content) return (string.lower(string.sub(Content.Publisher, 0, 10)) == "activision") end
19 |
20 | local function IsBandaiNamcoGame(Content)
21 | if (string.lower(string.sub(Content.Publisher, 0, 6)) == "bandai") then return true end
22 | if (string.lower(string.sub(Content.Publisher, 0, 5)) == "namco") then return true end
23 | return false
24 | end
25 |
26 | local function IsCapcomGame(Content) return (string.lower(string.sub(Content.Publisher, 0, 6)) == "capcom") end
27 |
28 | local function IsCodeMastersGame(Content) return (string.lower(string.sub(Content.Publisher, 0, 11)) == "codemasters") end
29 |
30 | local function IsKonamiGame(Content) return (string.lower(string.sub(Content.Publisher, 0, 6)) == "konami") end
31 |
32 | local function IsMicrosoftGame(Content)
33 | if (string.lower(string.sub(Content.Publisher, 0, 9)) == "microsoft") then return true end
34 | if (string.lower(string.sub(Content.Publisher, 0, 3)) == "mgs") then return true end
35 | return false
36 | end
37 |
38 | local function IsPopCapGame(Content) return (string.lower(string.sub(Content.Publisher, 0, 6)) == "popcap") end
39 |
40 | local function IsRockStarGame(Content) return (string.lower(string.sub(Content.Publisher, 0, 8)) == "rockstar") end
41 |
42 | local function IsSegaGame(Content) return (string.lower(string.sub(Content.Publisher, 0, 4)) == "sega") end
43 |
44 | local function IsSquareEnixGame(Content) return (string.lower(string.sub(Content.Publisher, 0, 6)) == "square") end
45 |
46 | local function IsBethesdaGame(Content) return (string.lower(string.sub(Content.Publisher, 0, 8)) == "bethesda") end
47 |
48 | local function IsEidosGame(Content) return (string.lower(string.sub(Content.Publisher, 0, 5)) == "eidos") end
49 |
50 | local function IsDisneyGame(Content) return (string.lower(string.sub(Content.Publisher, 0, 6)) == "disney") end
51 |
52 | GameListFilterCategories.Publishers = {}
53 | GameListFilterCategories.Publishers["EA"] = function(Content) return IsEaGame(Content) end
54 | GameListFilterCategories.Publishers["Ubisoft"] = function(Content) return IsUbisoftGame(Content) end
55 | GameListFilterCategories.Publishers["Warner Bros"] = function(Content) return IsWarnerBrosGame(Content) end
56 | GameListFilterCategories.Publishers["THQ"] = function(Content) return IsTHQGame(Content) end
57 | GameListFilterCategories.Publishers["Activision"] = function(Content) return IsActivisionGame(Content) end
58 | GameListFilterCategories.Publishers["Bandai Namco"] = function(Content) return IsBandaiNamcoGame(Content) end
59 | GameListFilterCategories.Publishers["Capcom"] = function(Content) return IsCapcomGame(Content) end
60 | GameListFilterCategories.Publishers["Codemasters"] = function(Content) return IsCodeMastersGame(Content) end
61 | GameListFilterCategories.Publishers["Konami"] = function(Content) return IsKonamiGame(Content) end
62 | GameListFilterCategories.Publishers["Microsoft"] = function(Content) return IsMicrosoftGame(Content) end
63 | GameListFilterCategories.Publishers["PopCap"] = function(Content) return IsPopCapGame(Content) end
64 | GameListFilterCategories.Publishers["Rockstar"] = function(Content) return IsRockStarGame(Content) end
65 | GameListFilterCategories.Publishers["Sega"] = function(Content) return IsSegaGame(Content) end
66 | GameListFilterCategories.Publishers["Square Enix"] = function(Content) return IsSquareEnixGame(Content) end
67 | GameListFilterCategories.Publishers["Bethesda"] = function(Content) return IsBethesdaGame(Content) end
68 | GameListFilterCategories.Publishers["Eidos"] = function(Content) return IsEidosGame(Content) end
69 | GameListFilterCategories.Publishers["Disney"] = function(Content) return IsDisneyGame(Content) end
70 |
--------------------------------------------------------------------------------
/Filters/Xbox360XBLA.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=Xbox 360 And XBLA
2 | scriptAuthor=Swizzy
3 | scriptDescription=A filter which will show both Xbox 360 and XBLA games together
--------------------------------------------------------------------------------
/Filters/Xbox360XBLA.lua:
--------------------------------------------------------------------------------
1 | GameListFilterCategories.User["Xbox 360 And XBLA"] = function(Content)
2 | if (Content.Group == ContentGroup.Xbox360) then return true end
3 | if (Content.Group == ContentGroup.XBLA) then return true end
4 | return false
5 | end
6 |
--------------------------------------------------------------------------------
/Sorts/LastPlayed.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=Last Played
2 | scriptAuthor=Swizzy
3 | scriptDescription=A sorting script based on the last time a title was started by Aurora with a fallback on the title name
--------------------------------------------------------------------------------
/Sorts/LastPlayed.lua:
--------------------------------------------------------------------------------
1 | GameListSorters["Last Played"] = function(Item1, Item2, Type)
2 | if (Type == SortType.Descending) then
3 | if ((Item1.LastPlayed.HighPart == 0) and (Item2.LastPlayed.HighPart == 0)) then
4 | return (string.lower(Item1.Name) > string.lower(Item2.Name))
5 | elseif ((Item1.LastPlayed.HighPart ~= 0) and (Item2.LastPlayed.HighPart == 0)) then
6 | return false
7 | elseif ((Item1.LastPlayed.HighPart == 0) and (Item2.LastPlayed.HighPart ~= 0)) then
8 | return true
9 | elseif (Item1.LastPlayed.HighPart ~= Item2.LastPlayed.HighPart) then
10 | return (Item1.LastPlayed.HighPart < Item2.LastPlayed.HighPart)
11 | else
12 | return (Item1.LastPlayed.LowPart < Item2.LastPlayed.LowPart)
13 | end
14 | else
15 | if ((Item1.LastPlayed.HighPart == 0) and (Item2.LastPlayed.HighPart == 0)) then
16 | return string.lower(Item1.Name) < string.lower(Item2.Name)
17 | elseif ((Item1.LastPlayed.HighPart ~= 0) and (Item2.LastPlayed.HighPart == 0)) then
18 | return true
19 | elseif ((Item1.LastPlayed.HighPart == 0) and (Item2.LastPlayed.HighPart ~= 0)) then
20 | return false
21 | elseif (Item1.LastPlayed.HighPart ~= Item2.LastPlayed.HighPart) then
22 | return (Item1.LastPlayed.HighPart > Item2.LastPlayed.HighPart)
23 | else
24 | return (Item1.LastPlayed.LowPart > Item2.LastPlayed.LowPart)
25 | end
26 | end
27 | end
28 |
--------------------------------------------------------------------------------
/Sorts/ReleaseDate.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=Release Date
2 | scriptAuthor=Swizzy
3 | scriptDescription=A sorting script based on the release date with a fallback on the title name
--------------------------------------------------------------------------------
/Sorts/ReleaseDate.lua:
--------------------------------------------------------------------------------
1 | GameListSorters["Release Date"] = function(Item1, Item2, Type)
2 | if Type == SortType.Descending then
3 | if (Item1.ReleaseDate == "" or Item2.ReleaseDate == "") or (Item1.ReleaseDate == Item2.ReleaseDate) then
4 | return string.lower(Item1.Name) > string.lower(Item2.Name)
5 | end
6 | return Item1.ReleaseDate > Item2.ReleaseDate
7 | end
8 | if (Item1.ReleaseDate == "" or Item2.ReleaseDate == "") or (Item1.ReleaseDate == Item2.ReleaseDate) then
9 | return string.lower(Item1.Name) < string.lower(Item2.Name)
10 | end
11 | return Item1.ReleaseDate < Item2.ReleaseDate
12 | end
13 |
--------------------------------------------------------------------------------
/Sorts/TitleID.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=TitleID
2 | scriptAuthor=Swizzy
3 | scriptDescription=A sorting script that sorts titles based on the TitleID followed by MediaID (if TitleID's are matching)
--------------------------------------------------------------------------------
/Sorts/TitleID.lua:
--------------------------------------------------------------------------------
1 | GameListSorters["TitleID"] = function(Item1, Item2, Type)
2 | if Type == SortType.Descending then
3 | if Item1.TitleId == Item2.TitleId then -- Check MediaID if TitleId is the same
4 | return Item1.MediaId > Item2.MediaId
5 | end
6 | return Item1.TitleId > Item2.TitleId
7 | end
8 | if Item1.TitleId == Item2.TitleId then
9 | return Item1.MediaId < Item2.MediaId -- Check MediaID if TitleId is the same
10 | end
11 |
12 | return Item1.TitleId < Item2.TitleId
13 | end
14 |
--------------------------------------------------------------------------------
/Sorts/TypeAndName.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=Type And Name
2 | scriptAuthor=Swizzy
3 | scriptDescription=A sorting script which groups games by their type followed by sorting them by their title name
--------------------------------------------------------------------------------
/Sorts/TypeAndName.lua:
--------------------------------------------------------------------------------
1 | GameListSorters["Name Grouped by Type"] = function(Item1, Item2, Type)
2 | if Item1.Type ~= Item2.Type then
3 | return Item1.Type > Item2.Type
4 | end
5 | if Type == SortType.Descending then
6 | return string.lower(Item1.Name) > string.lower(Item2.Name)
7 | end
8 | return string.lower(Item1.Name) < string.lower(Item2.Name)
9 | end
--------------------------------------------------------------------------------
/Subtitles/CapabilitiesFlag.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=Capabilities Flag
2 | scriptAuthor=Swizzy
3 | scriptDescription=A collection of subtitles for the CapabilitiesFlag
--------------------------------------------------------------------------------
/Subtitles/CapabilitiesFlag.lua:
--------------------------------------------------------------------------------
1 | local function GetFlag(Content, flag)
2 | if (bit32.btest(Content.CapabilitiesFlag, flag)) then
3 | return "Yes"
4 | end
5 | return "No"
6 | end
7 |
8 | GameListSubtitles["DolbyDigitalSupported"] = function(Content)
9 | return string.format("Supports Dolby Digital: %s", GetFlag(Content, 1))
10 | end
11 |
12 | GameListSubtitles["HarddriveRequired"] = function(Content)
13 | return string.format("Requires Harddrive: Offline: %s Online: %s", GetFlag(Content, 2), GetFlag(Content, 4))
14 | end
15 |
16 | GameListSubtitles["HarddriveRequiredOffline"] = function(Content)
17 | return string.format("Requires Harddrive (Offline): %s", GetFlag(Content, 2))
18 | end
19 |
20 | GameListSubtitles["HarddriveRequiredOnline"] = function(Content)
21 | return string.format("Requires Harddrive (Online): %s", GetFlag(Content, 4))
22 | end
23 |
24 | GameListSubtitles["OnlineLeaderBoards"] = function(Content)
25 | return string.format("Online Leaderboards: %s", GetFlag(Content, 8))
26 | end
27 |
28 | GameListSubtitles["OnlineContentDownload"] = function(Content)
29 | return string.format("Online Content Download: %s", GetFlag(Content, 16))
30 | end
31 |
32 | GameListSubtitles["OnlineVoice"] = function(Content)
33 | return string.format("Online Voice: %s", GetFlag(Content, 32))
34 | end
--------------------------------------------------------------------------------
/Subtitles/CapabilitiesOffline.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=Capabilities Offline Flag
2 | scriptAuthor=Swizzy
3 | scriptDescription=A collection of subtitles for the CapabilitiesOffline flag
--------------------------------------------------------------------------------
/Subtitles/CapabilitiesOffline.lua:
--------------------------------------------------------------------------------
1 | GameListSubtitles["OfflineCapabilities"] = function(Content)
2 | minsys = bit32.band(Content.CapabilitiesOffline.HighPart, 0x000000FF)
3 | maxsys = bit32.rshift(bit32.band(Content.CapabilitiesOffline.HighPart, 0x0000FF00), 8)
4 | minco = bit32.rshift(bit32.band(Content.CapabilitiesOffline.LowPart, 0x00FF0000), 16)
5 | maxco = bit32.rshift(bit32.band(Content.CapabilitiesOffline.LowPart, 0xFF000000), 24)
6 | minp = bit32.band(Content.CapabilitiesOffline.LowPart, 0x000000FF)
7 | maxp = bit32.rshift(bit32.band(Content.CapabilitiesOffline.LowPart, 0x0000FF00), 8)
8 | return string.format("Offline Players: %i-%i, %i-%i, %i-%i", minsys, maxsys, minco, maxco, minp, maxp)
9 | end
10 |
11 | GameListSubtitles["OfflineSystemLink"] = function(Content)
12 | minimum = bit32.band(Content.CapabilitiesOffline.HighPart, 0x000000FF)
13 | maximum = bit32.rshift(bit32.band(Content.CapabilitiesOffline.HighPart, 0x0000FF00), 8)
14 | return string.format("Offline System Link Players: %i-%i", minimum, maximum)
15 | end
16 |
17 | GameListSubtitles["OfflineCo-Op"] = function(Content)
18 | minimum = bit32.rshift(bit32.band(Content.CapabilitiesOffline.LowPart, 0x00FF0000), 16)
19 | maximum = bit32.rshift(bit32.band(Content.CapabilitiesOffline.LowPart, 0xFF000000), 24)
20 | return string.format("Offline Co-Op Players: %i-%i", minimum, maximum)
21 | end
22 |
23 | GameListSubtitles["OfflinePlayers"] = function(Content)
24 | minimum = bit32.band(Content.CapabilitiesOffline.LowPart, 0x000000FF)
25 | maximum = bit32.rshift(bit32.band(Content.CapabilitiesOffline.LowPart, 0x0000FF00), 8)
26 | return string.format("Offline Players: %i-%i", minimum, maximum)
27 | end
--------------------------------------------------------------------------------
/Subtitles/CapabilitiesOnline.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=Capabilities Online Flag
2 | scriptAuthor=Swizzy
3 | scriptDescription=A collection of subtitles for the CapabilitiesOnline flag
--------------------------------------------------------------------------------
/Subtitles/CapabilitiesOnline.lua:
--------------------------------------------------------------------------------
1 | GameListSubtitles["OnlineOfflineCapabilitiesFlag"] = function(Content)
2 | return string.format("Online Flag: %08X, Offline Flag: %08X%08X", Content.CapabilitiesOnline, Content.CapabilitiesOffline.HighPart, Content.CapabilitiesOffline.LowPart)
3 | end
4 |
5 | GameListSubtitles["OnlineCapabilities"] = function(Content)
6 | minmulti = bit32.rshift(bit32.band(Content.CapabilitiesOnline, 0x00FF0000), 16)
7 | maxmulti = bit32.rshift(bit32.band(Content.CapabilitiesOnline, 0xFF000000), 24)
8 | minco = bit32.band(Content.CapabilitiesOnline, 0x000000FF)
9 | maxco = bit32.rshift(bit32.band(Content.CapabilitiesOnline, 0x0000FF00), 8)
10 | return string.format("Online Players: %i-%i, %i-%i", minmulti, maxmulti, minco, maxco)
11 | end
12 |
13 | GameListSubtitles["OnlineMultiplayer"] = function(Content)
14 | minimum = bit32.rshift(bit32.band(Content.CapabilitiesOnline, 0x00FF0000), 16)
15 | maximum = bit32.rshift(bit32.band(Content.CapabilitiesOnline, 0xFF000000), 24)
16 | return string.format("Online Multiplayer: %i-%i", minimum, maximum)
17 | end
18 |
19 | GameListSubtitles["OnlineCo-Op"] = function(Content)
20 | minimum = bit32.band(Content.CapabilitiesOnline, 0x000000FF)
21 | maximum = bit32.rshift(bit32.band(Content.CapabilitiesOnline, 0x0000FF00), 8)
22 | return string.format("Online Co-Op: %i-%i", minimum, maximum)
23 | end
--------------------------------------------------------------------------------
/Subtitles/GameDataPath.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=Game Data Path (Assets Path)
2 | scriptAuthor=Swizzy
3 | scriptDescription=A subtitle that shows you the GameData path (where assets for this title can be found)
--------------------------------------------------------------------------------
/Subtitles/GameDataPath.lua:
--------------------------------------------------------------------------------
1 | GameListSubtitles["GameDataPath"] = function(Content)
2 | return string.format("Game Data Path: Aurora/Data/GameData/%08X_%08X", Content.TitleId, Content.Id)
3 | end
--------------------------------------------------------------------------------
/Subtitles/ReleaseDate.ini:
--------------------------------------------------------------------------------
1 | scriptTitle=Release Date
2 | scriptAuthor=Swizzy
3 | scriptDescription=A subtitle that shows you the release date of the current title
--------------------------------------------------------------------------------
/Subtitles/ReleaseDate.lua:
--------------------------------------------------------------------------------
1 | GameListSubtitles["ReleaseDate"] = function(Content)
2 | if Content.ReleaseDate ~= "" then
3 | return string.format("Release Date: %s", Content.ReleaseDate )
4 | end
5 | return "Release Date: Not Available"
6 | end
--------------------------------------------------------------------------------
/UtilityScripts/ConsoleInfo/Main.lua:
--------------------------------------------------------------------------------
1 | scriptTitle = "Console Info Viewer"
2 | scriptAuthor = "Phoenix"
3 | scriptVersion = 1
4 | scriptDescription = "This script displays valuable information about your console"
5 | scriptPermissions = { "kernel" }
6 |
7 | function main()
8 | local ver = Kernel.GetVersion();
9 | local msg = "Kernel Version: " .. ver.Major .. "." .. ver.Minor .. "." .. ver.Build .. "." .. ver.Qfe .. "\n";
10 | msg = msg .. "Console Type: " .. Kernel.GetConsoleType() .. "\n";
11 | msg = msg .. "Motherboard Type: " .. Kernel.GetMotherboardType() .. "\n";
12 | msg = msg .. "Console Serial: " .. Kernel.GetSerialNumber() .. "\n";
13 | msg = msg .. "Console ID: " .. Kernel.GetConsoleId() .. "\n";
14 | local key = Kernel.GetDVDKey();
15 | if key ~= nil then
16 | msg = msg .. "DVDKey: " .. key .. "\n";
17 | else
18 | msg = msg .. "DVDKey: N\\A\n";
19 | end
20 | key = Kernel.GetCPUKey();
21 | if key ~= nil then
22 | msg = msg .. "CPUKey: " .. key .. "\n";
23 | else
24 | msg = msg .. "CPUKey: N\\A\n";
25 | end
26 | Script.ShowMessageBox("Console Information", msg, "OK");
27 | end
28 |
--------------------------------------------------------------------------------
/UtilityScripts/ConsoleInfo/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/ConsoleInfo/icon.png
--------------------------------------------------------------------------------
/UtilityScripts/DBCleaner/Main.lua:
--------------------------------------------------------------------------------
1 | scriptTitle = "Aurora Database Cleaner"
2 | scriptAuthor = "Phoenix"
3 | scriptVersion = 1
4 | scriptDescription = "A database cleaner for Aurora (Removes database entries for titles which no longer exists)"
5 | scriptIcon = "icon.png"
6 |
7 | -- Define script permissions to enable access to libraries
8 | scriptPermissions = { "sql", "filesystem" }
9 |
10 | -- Main entry point to script
11 | function main()
12 | Script.SetStatus("Gathering content info from Database...");
13 | local notMountedCounter = 0; -- Used to determine if there was devices that wasn't mounted
14 | local cleanedCounter = 0; -- Used to determine if any database changes were made requiring a reload of Aurora
15 | local contentCounter = 0; -- Used to determine how far we've processed
16 | local dirCounter = 0; -- Used to keep track of current index for dirInfo
17 | local dirInfo = {} -- Used to store the directory information for each scanpath
18 | for _, v in pairs(Sql.ExecuteFetchRows("SELECT Id,Path,DeviceId FROM ScanPaths")) do
19 | local c, mountpoint, cnt = GetContentItemsForScanPath(v.Id, v.DeviceId);
20 | if mountpoint == nil then
21 | notMountedCounter = notMountedCounter + 1;
22 | else
23 | dirCounter = dirCounter + 1;
24 | dirInfo[dirCounter] = {}
25 | dirInfo[dirCounter].Dir = mountpoint .. v.Path;
26 | dirInfo[dirCounter].Content = c;
27 | dirInfo[dirCounter].Count = cnt;
28 | contentCounter = contentCounter + cnt;
29 | end
30 | end
31 | local progressCounter = 0;
32 | local cnt = 0;
33 | for _, v in pairs(dirInfo) do
34 | cnt, progressCounter = CleanupContent(v.Content, v.Dir, progressCounter, contentCounter);
35 | cleanedCounter = cleanedCounter + cnt;
36 | end
37 | if notMountedCounter > 0 then
38 | Script.ShowMessageBox("Unmounted devices detected...", "There was scanpaths which could not be checked\n\nYour options for these devices are:\n\n1. Attach it and run the script again\n2. Remove the scanpath", "OK");
39 | end
40 | Script.SetStatus("Cleanup finished...");
41 | Script.ShowNotification(string.format("%d Titles affected by the script", cleanedCounter));
42 | if cleanedCounter > 0 then
43 | local ret = Script.ShowMessageBox("Reload Required", "In order for the changes to take effect you need to reload Aurora\nDo you want to reload Aurora now?", "No", "Yes");
44 | if ret.Button == 2 then
45 | Aurora.Restart();
46 | end
47 | end
48 | end
49 |
50 | --GetContentItemsForScanPath function, it gets the mountpoint of the scanpath and all related content
51 | --Expected Input:
52 | -- pathid: Database Id for the scanpath
53 | -- deviceid: Device ID for the mountpoint
54 | --Returns: ContentList, MountPoint, Count of content items
55 | --Returns: nil, nil 0 if there is no mountpoint to be found for the Device ID
56 | function GetContentItemsForScanPath(pathid, deviceid)
57 | local mountpoint = nil;
58 | if deviceid ~= nil then
59 | for _, v in pairs(Sql.ExecuteFetchRows("SELECT MountPoint FROM MountedDevices WHERE DeviceId == \"" .. deviceid .. "\"")) do
60 | mountpoint = v.MountPoint;
61 | break; -- We only want the first entry, should only return one value tho...
62 | end
63 | if mountpoint ~= nil then
64 | local content = Sql.ExecuteFetchRows("SELECT Id,Directory,Executable,TitleId,TitleName FROM ContentItems WHERE ScanPathId == " .. pathid);
65 | local cnt = 0;
66 | for k in pairs(content) do
67 | content[k].Directory = mountpoint .. content[k].Directory;
68 | cnt = cnt + 1;
69 | end
70 | return content, mountpoint, cnt;
71 | end
72 | end
73 | return nil, nil, 0;
74 | end
75 |
76 | --CleanupContent function, it checks if the title exists, if not it'll cleanup everything related to it
77 | -- Expected input:
78 | -- list: a table containing: Id,Directory,Executable,TitleId and TitleName where Directory has been corrected to have the mountpoint
79 | -- dir: MountPoint + Path of the scanpath (to display to the user)
80 | -- progressCounter: Current progress, 0 if first otherwise whatever was returned before
81 | -- total: Total ammount of items
82 | --Returns: CountOfRemovedEntries, progressCounter incremented by items processed
83 | function CleanupContent(list, dir, progressCounter, total)
84 | local cnt = 0;
85 | for _, v in pairs(list) do
86 | Script.SetStatus("Processing " .. dir);
87 | if (not FileSystem.FileExists(v.Directory .. "\\" .. v.Executable)) then
88 | cnt = cnt + 1;
89 | Cleanup(v);
90 | end
91 | progressCounter = progressCounter + 1;
92 | Script.SetProgress(progressCounter, total);
93 | end
94 | return cnt, progressCounter;
95 | end
96 |
97 | -- Cleanup function, it deletes the assets and removes the title from the database
98 | -- Expected input: a table containing TitleName, TitleId and Database Id
99 | function Cleanup(v)
100 | Script.SetStatus("Cleaning up assets for ".. v.TitleName);
101 | FileSystem.DeleteDirectory(string.format("game:\\Data\\GameData\\%08X_%08X", tounsigned(v.TitleId), tounsigned(v.Id)));
102 | Script.SetStatus("Removing Title from DB: ".. v.TitleName);
103 | Sql.Execute("DELETE FROM ContentItems WHERE Id == " .. v.Id);
104 | end
105 |
--------------------------------------------------------------------------------
/UtilityScripts/DBCleaner/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/DBCleaner/icon.png
--------------------------------------------------------------------------------
/UtilityScripts/DiscInstaller/icon/frames.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/DiscInstaller/icon/frames.png
--------------------------------------------------------------------------------
/UtilityScripts/DiscInstaller/icon/icon.xui:
--------------------------------------------------------------------------------
1 |
2 |
3 | 64.000000
4 | 64.000000
5 |
6 |
7 |
8 | IconScene
9 | 64.000000
10 | 64.000000
11 | true
12 |
13 |
14 |
15 | AnimationStrip
16 | 640.000000
17 | 320.000000
18 | 1
19 | frames.png
20 |
21 |
22 |
23 |
24 | AnimationStrip
25 | Position
26 |
27 |
28 | 1
29 | 0.000000,0.000000,0.000000
30 |
31 |
32 |
33 | 1
34 | -64.000000,0.000000,0.000000
35 |
36 |
37 |
38 | 1
39 | -128.000000,0.000000,0.000000
40 |
41 |
42 |
43 | 1
44 | -192.000000,0.000000,0.000000
45 |
46 |
47 |
48 | 1
49 | -256.000000,0.000000,0.000000
50 |
51 |
52 |
53 | 1
54 | -320.000000,0.000000,0.000000
55 |
56 |
57 |
58 | 1
59 | -384.000000,0.000000,0.000000
60 |
61 |
62 |
63 | 1
64 | -448.000000,0.000000,0.000000
65 |
66 |
67 |
68 | 1
69 | -512.000000,0.000000,0.000000
70 |
71 |
72 |
73 | 1
74 | -576.000000,0.000000,0.000000
75 |
76 |
77 |
78 | 1
79 | 0.000000,-64.000000,0.000000
80 |
81 |
82 |
83 | 1
84 | -64.000000,-64.000000,0.000000
85 |
86 |
87 |
88 | 1
89 | -128.000000,-64.000000,0.000000
90 |
91 |
92 |
93 | 1
94 | -192.000000,-64.000000,0.000000
95 |
96 |
97 |
98 | 1
99 | -256.000000,-64.000000,0.000000
100 |
101 |
102 |
103 | 1
104 | -320.000000,-64.000000,0.000000
105 |
106 |
107 |
108 | 1
109 | -384.000000,-64.000000,0.000000
110 |
111 |
112 |
113 | 1
114 | -448.000000,-64.000000,0.000000
115 |
116 |
117 |
118 | 1
119 | -512.000000,-64.000000,0.000000
120 |
121 |
122 |
123 | 1
124 | -576.000000,-64.000000,0.000000
125 |
126 |
127 |
128 | 1
129 | 0.000000,-128.000000,0.000000
130 |
131 |
132 |
133 | 1
134 | -64.000000,-128.000000,0.000000
135 |
136 |
137 |
138 | 1
139 | -128.000000,-128.000000,0.000000
140 |
141 |
142 |
143 | 1
144 | -192.000000,-128.000000,0.000000
145 |
146 |
147 |
148 | 1
149 | -256.000000,-128.000000,0.000000
150 |
151 |
152 |
153 | 1
154 | -320.000000,-128.000000,0.000000
155 |
156 |
157 |
158 | 1
159 | -384.000000,-128.000000,0.000000
160 |
161 |
162 |
163 | 1
164 | -448.000000,-128.000000,0.000000
165 |
166 |
167 |
168 | 1
169 | -512.000000,-128.000000,0.000000
170 |
171 |
172 |
173 | 1
174 | -576.000000,-128.000000,0.000000
175 |
176 |
177 |
178 | 1
179 | 0.000000,-192.000000,0.000000
180 |
181 |
182 |
183 | 1
184 | -64.000000,-192.000000,0.000000
185 |
186 |
187 |
188 | 1
189 | -128.000000,-192.000000,0.000000
190 |
191 |
192 |
193 | 1
194 | -192.000000,-192.000000,0.000000
195 |
196 |
197 |
198 | 1
199 | -256.000000,-192.000000,0.000000
200 |
201 |
202 |
203 | 1
204 | -320.000000,-192.000000,0.000000
205 |
206 |
207 |
208 | 1
209 | -384.000000,-192.000000,0.000000
210 |
211 |
212 |
213 | 1
214 | -448.000000,-192.000000,0.000000
215 |
216 |
217 |
218 | 1
219 | -512.000000,-192.000000,0.000000
220 |
221 |
222 |
223 | 1
224 | -576.000000,-192.000000,0.000000
225 |
226 |
227 |
228 | 1
229 | 0.000000,-256.000000,0.000000
230 |
231 |
232 |
233 | 1
234 | -64.000000,-256.000000,0.000000
235 |
236 |
237 |
238 | 1
239 | -128.000000,-256.000000,0.000000
240 |
241 |
242 |
243 | 1
244 | -192.000000,-256.000000,0.000000
245 |
246 |
247 |
248 | 1
249 | -256.000000,-256.000000,0.000000
250 |
251 |
252 |
253 | 1
254 | -320.000000,-256.000000,0.000000
255 |
256 |
257 |
258 | 1
259 | -384.000000,-256.000000,0.000000
260 |
261 |
262 |
263 | 1
264 | -448.000000,-256.000000,0.000000
265 |
266 |
267 |
268 | 1
269 | -512.000000,-256.000000,0.000000
270 |
271 |
272 |
273 | 1
274 | -576.000000,-256.000000,0.000000
275 |
276 |
277 |
278 | 0
279 | 0.000000,-0.000000,0.000000
280 |
281 |
282 |
283 |
284 |
285 |
--------------------------------------------------------------------------------
/UtilityScripts/DiscInstaller/icon/icon.xur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/DiscInstaller/icon/icon.xur
--------------------------------------------------------------------------------
/UtilityScripts/DiscRipper/Main.lua:
--------------------------------------------------------------------------------
1 | scriptTitle = "Disc Ripper"
2 | scriptAuthor = "Derf"
3 | scriptVersion = "1.0"
4 | scriptDescription = "Copies the contents of a disc to a folder on your Xbox 360."
5 | scriptIcon = "icon.png"
6 | scriptPermissions = { "filesystem" }
7 |
8 | -- Define used enums
9 | FilebrowserFlag = enum {
10 | ShowFiles = 0x01,
11 | BaseDirAsRoot = 0x02,
12 | HideCreateDir = 0x04,
13 | DisableHomeDrives = 0x08,
14 | DeviceSelect = 0x10,
15 | SelectDirectory = 0x20
16 | }
17 |
18 | function main()
19 | -- Browse for install path
20 | local ret = Script.ShowFilebrowser("\\Xbox360\\System\\", "", FilebrowserFlag.BaseDirAsRoot + FilebrowserFlag.SelectDirectory);
21 | if ret.Canceled == false then
22 | -- Get installation path
23 | basePath = ret.File.MountPoint .. "\\" .. ret.File.RelativePath .. "\\" .. ret.File.Name .. "\\";
24 | Script.SetStatus("Copying files...");
25 | local result = FileSystem.CopyDirectory("dvd:\\", basePath, true, CopyProgressRoutine);
26 | if result == true then
27 | Script.ShowNotification("Copy complete!");
28 | else
29 | Script.ShowNotification("Copy failed or was aborted");
30 | Script.ShowMessageBox("ERROR", "The disc copy failed or was aborted.\nReasons for this may include:\n- Operation was manually aborted.\n- Destination device was removed.\n- Destination path is too long\n- Disc has anti-copying protection via long file names or paths\n\nTry selecting a short named folder on the HDD root or ripping to a USB storage device.", "OK");
31 | end
32 | end
33 | end
34 |
35 | function CopyProgressRoutine( dwTotalFileSize, dwTotalBytesTransferred )
36 | if Script.IsCanceled() then
37 | Aurora.OpenDVDTray(); -- This forces the "CopyFile" and "CopyDirectory" operations to abort; credit to thenicnic
38 | end
39 |
40 | Script.SetProgress(dwTotalBytesTransferred, dwTotalFileSize);
41 | end
42 |
--------------------------------------------------------------------------------
/UtilityScripts/DiscRipper/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/DiscRipper/icon.png
--------------------------------------------------------------------------------
/UtilityScripts/ExportGamesList/Main.lua:
--------------------------------------------------------------------------------
1 | scriptTitle = "Export Games List"
2 | scriptAuthor = "EmiMods"
3 | scriptVersion = 1.0
4 | scriptDescription = "Exports a list of your games (name, titleID) to a text file."
5 | scriptIcon = "icon.png"
6 | scriptPermissions = { "content", "filesystem" }
7 |
8 | function main()
9 | local collection = Content.FindContent()
10 | local arrGamesDialog = {}
11 | local textFileContents = {}
12 | local textFileContentString = ""
13 |
14 | -- Grab all titleIDs/Games and save for display purposes and export purposes respectively
15 | for i=1,#collection do
16 | arrGamesDialog[i] = collection[i].Name .. " (" .. decToHex(collection[i].TitleId) .. ")"
17 | textFileContents[i] = collection[i].Name .. ", " .. decToHex(collection[i].TitleId) -- Different from display to make the file easier to work with if needed by user
18 | end
19 |
20 | -- Sort tables alphabetically, case-insensitive
21 | table.sort(arrGamesDialog, function (a, b) return string.upper(a) < string.upper(b) end)
22 | table.sort(textFileContents, function (a, b) return string.upper(a) < string.upper(b) end)
23 |
24 | for i=1,#textFileContents do
25 | textFileContentString = textFileContentString .. textFileContents[i] .. "\n"
26 | end
27 |
28 | -- Display list of games to be exported
29 | local foundDialog = Script.ShowPopupList("Found " .. tostring(#collection).. " titles. Press A to continue.", "No titles found.", arrGamesDialog)
30 | if not foundDialog.Canceled then
31 | local path = promptDriveSelect()
32 |
33 | if string.len(path) > 0 then
34 | path = path .. "\\GamesList.txt" -- Saves to root of selected drive
35 |
36 | if not FileSystem.FileExists(path) then
37 | FileSystem.WriteFile(path, textFileContentString)
38 | if FileSystem.FileExists(path) then
39 | Script.ShowMessageBox("Success!", "Games list successfully exported to: \n" .. path, "Exit")
40 | end
41 | else
42 | Script.ShowMessageBox("Error", "A game export already exists at: \n" .. path .. ".\n\nPlease rename, move, or delete this file before running this script.", "Exit")
43 | end
44 | else
45 | showCancel()
46 | end
47 | else
48 | showCancel()
49 | end
50 | end
51 |
52 | function showCancel()
53 | Script.ShowMessageBox("Canceled", "You have exited the script succesfully. Games have not been exported.", "Exit")
54 | end
55 |
56 | function decToHex(decimal)
57 | return string.format(string.upper("%08x"), decimal)
58 | end
59 |
60 | function promptDriveSelect()
61 | local arrDrives = {}
62 |
63 | -- Grab list of drives
64 | for i, drives in ipairs(FileSystem.GetDrives(false)) do
65 | arrDrives[i] = drives["MountPoint"]
66 | end
67 |
68 | --Display drives to user for selection
69 | local dialog = Script.ShowPopupList(
70 | "Please select where to save the text file..",
71 | "No drives found.",
72 | arrDrives
73 | )
74 |
75 | if not dialog.Canceled then
76 | return dialog.Selected.Value
77 | else
78 | return ""
79 | end
80 | end
--------------------------------------------------------------------------------
/UtilityScripts/ExportGamesList/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/ExportGamesList/icon.png
--------------------------------------------------------------------------------
/UtilityScripts/FixClonedDrive/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/FixClonedDrive/icon.png
--------------------------------------------------------------------------------
/UtilityScripts/FreeMyDisk/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/FreeMyDisk/icon.png
--------------------------------------------------------------------------------
/UtilityScripts/FreeMyDisk/main.lua:
--------------------------------------------------------------------------------
1 | scriptTitle = "Free My Disk"
2 | scriptAuthor = "Dan Martí"
3 | scriptVersion = 1
4 | scriptDescription = "Free your HDD from title updates of games that you don't have anymore!\nfb.com/Danotopia"
5 | scriptIcon = "icon.png";
6 |
7 | scriptPermissions = { "filesystem", "sql" }
8 |
9 |
10 | local function roundToNthDecimal(num, n)
11 | local mult = 10^(n or 0)
12 | return math.floor(num * mult + 0.5) / mult
13 | end
14 |
15 | -- Main entry point to script
16 | function main()
17 | print("-- " .. scriptTitle .. " Started...");
18 | -- init();
19 | Script.SetStatus("Scanning DB and files...");
20 | Script.SetProgress(0);
21 | local sqlquery="SELECT Id as id, tus.DisplayName AS tu, tus.BackupPath AS backuppath, (tus.LivePath || tus.FileName) AS path FROM TitleUpdates AS tus WHERE tus.TitleId NOT IN (SELECT TitleId FROM ContentItems WHERE TitleId=tus.TitleId) AND NOT tus.MediaId=0";
22 | local size=0;
23 | local thissize;
24 | local tuid = {};
25 | local filelist = {};
26 | local filetitles = "";
27 | local titlecount = 0;
28 | local filecount = 0;
29 |
30 | for _, v in pairs(Sql.ExecuteFetchRows(sqlquery)) do
31 | local path="Hdd1:" .. v.path;
32 | thissize=0;
33 | if FileSystem.FileExists(v.backuppath) then
34 | filecount = filecount + 1;
35 | thissize = thissize + ((FileSystem.GetFileSize(v.backuppath)/1024)/1024);
36 | filelist[filecount] = v.backuppath;
37 | end
38 | if FileSystem.FileExists(path) then
39 | filecount = filecount + 1;
40 | thissize = thissize + ((FileSystem.GetFileSize(path)/1024)/1024);
41 | filelist[filecount] = path;
42 | end
43 | if thissize>0 then
44 | titlecount=titlecount+1;
45 | tuid[titlecount]=v.id;
46 | filetitles=filetitles .. "\n" .. string.sub(v.tu,1,20) .. "... (" .. roundToNthDecimal(thissize,1) .. "Mb)";
47 | end
48 | size = size + thissize;
49 | end
50 | if size==0 then
51 | Script.ShowMessageBox(scriptTitle, "Good news!\nThere are no Title Updates unused so nothing to do here", "OK");
52 | return true;
53 | end
54 | ::promptagain::
55 | local sel = Script.ShowMessageBox(scriptTitle, "There were " .. titlecount .. " unnecesary TUs (" .. roundToNthDecimal(size,1) .. "Mb)" .. filetitles .. "\n" .. roundToNthDecimal(size,1) .. "Mb in total.\nDo you want to remove them?", "Yes", "No");
56 | if sel.Button==1 then
57 | local sel2 = Script.ShowMessageBox(scriptTitle, "The files are gonna be deleted permanently\nAre you sure you want to do this?", "Yes", "No");
58 | if sel2.Button==1 then
59 | local counter = 1;
60 | local err=0;
61 | local freedsize=0;
62 | for _, v in pairs(filelist) do
63 | Script.SetStatus("Deleting " .. counter .. " of " .. filecount .. "...");
64 | Script.SetProgress(roundToNthDecimal((counter*100)/filecount,0));
65 | local sz=FileSystem.GetFileSize(v);
66 | if FileSystem.DeleteFile(v) ~= true then
67 | print("Error: Failed deleting " .. v);
68 | err = err + 1;
69 | else
70 | freedsize = freedsize + sz;
71 | end
72 | counter = counter + 1;
73 | end
74 | counter=1;
75 | for _, v in pairs(tuid) do
76 | Script.SetStatus("Cleaning DB " .. counter .. " of " .. titlecount .. "...");
77 | Script.SetProgress(roundToNthDecimal(counter*100)/titlecount,0);
78 | if Sql.Execute("DELETE FROM TitleUpdates WHERE Id=" .. v) ~= true then
79 | print("Error: Failed remove from TitleUpdates with Id=" .. v);
80 | err = err + 1;
81 | end
82 | counter = counter + 1;
83 | end
84 | Script.SetStatus("Done!");
85 | if err==0 then
86 | Script.ShowMessageBox(scriptTitle,"Done!\n" .. ((freedsize/1024)/1024) .. "Mb deleted in " .. filecount .. " files of " .. titlecount .. " TUs");
87 | else
88 | Script.ShowMessageBox(scriptTitle,"Done!\n" .. ((freedsize/1024)/1024) .. "Mb deleted in " .. filecount .. " files of " .. titlecount .. " TUs\nBut...\nThere were " .. err .. " errors. Check the log file");
89 | end
90 | else
91 | goto promptagain;
92 | end
93 | end
94 | print("-- " .. scriptTitle .. " Ended...");
95 | end
96 |
--------------------------------------------------------------------------------
/UtilityScripts/HomebrewStore/MenuSystem.lua:
--------------------------------------------------------------------------------
1 | local TopLevelMenu = {}
2 | TopLevelMenu.SubMenu = {}
3 | local TitleText = "Menu";
4 | local EmptyText = "No Menu Available";
5 | local ExitOnCancel = false;
6 | local GoBackText = "Go Back";
7 | local SortAlphaBetically = false;
8 |
9 | _ShowMenu = function(menuItem)
10 | local menu = {}
11 | if SortAlphaBetically then
12 | table.sort(menuItem, function(a, b) return type(a) == "table" and type(b) == "table" and a.Name < b.Name; end);
13 | end
14 | for k, v in ipairs(menuItem) do
15 | if type(v) == "table" then
16 | menu[k] = v.Name;
17 | else
18 | if GoBackText ~= nil and GoBackText ~= "" then
19 | menu[k] = GoBackText; -- Only show the "Go Back" option if we actually have it set to something
20 | end
21 | end
22 | end
23 | local ret = Script.ShowPopupList(TitleText, EmptyText, menu);
24 | if ret.Canceled == true or (ret.Selected.Key == 1 and ret.Selected.Value == GoBackText) then
25 | if ret.Canceled == true then
26 | if ExitOnCancel == true then
27 | return nil, menuItem, ret.Canceled, nil;
28 | end
29 | end
30 | if menuItem.Parent == nil or menuItem.Parent.Parent == nil then
31 | return nil, menuItem, ret.Canceled, nil;
32 | else
33 | menu = nil;
34 | ret = nil;
35 | return _ShowMenu(menuItem.Parent.Parent);
36 | end
37 | else
38 | ret = menuItem[ret.Selected.Key];
39 | if ret.SubMenu == nil then
40 | return ret.Data, menuItem, false, ret;
41 | else
42 | menu = nil;
43 | return _ShowMenu(ret.SubMenu);
44 | end
45 | end
46 | end
47 |
48 | Menu = {
49 | ShowMenu = function(menuItem)
50 | return _ShowMenu(menuItem); -- Call the actual function^
51 | end,
52 | ShowMainMenu = function()
53 | return _ShowMenu(TopLevelMenu.SubMenu); -- Show the main menu (TopLevelMenu.SubMenu)
54 | end,
55 | ResetMenu = function()
56 | TopLevelMenu.SubMenu = {} -- Reset the menu to be empty
57 | TitleText = "Menu"; -- Reset title to the default one
58 | EmptyText = "No Menu Available"; -- Reset empty text to the default one
59 | ExitOnCancel = false; -- Reset ExitOnCancel to it's default value
60 | GoBackText = "Go Back"; -- Reset GoBackText to it's default value
61 | end,
62 | MakeMenuItem = function(displayName, data)
63 | return {
64 | Name = displayName; -- Set the Name Property to be displayed in the menu
65 | Data = data; -- Set the data property, if any...
66 | }
67 | end,
68 | AddSubMenuItem = function(menuItem, subMenuItem)
69 | if menuItem.SubMenu == nil then -- Check if we have a SubMenu already or not
70 | menuItem.SubMenu = {} -- Add the SubMenu table
71 | menuItem.SubMenu[1] = GoBackText; -- Add a "Go Back" to the Sub Menu
72 | menuItem.SubMenu.Parent = menuItem; -- Set the parent of the SubMenu to the menu we're adding it to
73 | end
74 | subMenuItem.Parent = menuItem.SubMenu; -- Set the parent of the subMenuItem to the SubMenu table so we can go further up the chain
75 | table.insert(menuItem.SubMenu, subMenuItem); -- Insert the subMenuItem to the menu
76 | end,
77 | AddMainMenuItem = function(menuItem)
78 | if TopLevelMenu.SubMenu == nil then -- Check if we have a SubMenu already or not
79 | TopLevelMenu.SubMenu = {} -- Add the SubMenu table
80 | TopLevelMenu.SubMenu.Parent = TopLevelMenu; -- Set SubMenu parent to TopLevelMenu
81 | end
82 | menuItem.Parent = TopLevelMenu.SubMenu; -- Set the parent of the subMenuItem to the SubMenu table so we can go further up the chain
83 | table.insert(TopLevelMenu.SubMenu, menuItem); -- Insert the menuItem to the menu
84 | end,
85 | SetTitle = function(title)
86 | TitleText = title; -- Set the TitleText
87 | end,
88 | SetEmptyText = function(emptyText)
89 | EmptyText = emptyText; -- Set the text to be shown if the menu is empty
90 | end,
91 | SetExitOnCancel = function(exitOnCancel)
92 | ExitOnCancel = exitOnCancel == true; -- Set the flag that tells the menu system to exit upon being canceled (B being pressed)
93 | end,
94 | SetGoBackText = function(goBackText)
95 | GoBackText = goBackText; -- Set the text for the return/back menu item
96 | end,
97 | SetSortAlphaBetically = function(sortAlphaBetically)
98 | SortAlphaBetically = sortAlphaBetically == true; -- Set the flag that tells us if we should sort alphabetically
99 | end,
100 | IsMainMenu = function(menu)
101 | return menu == TopLevelMenu.SubMenu;
102 | end
103 | }
104 |
105 | return Menu;
--------------------------------------------------------------------------------
/UtilityScripts/HomebrewStore/Repos/consolemods.org.ini:
--------------------------------------------------------------------------------
1 | [update]
2 | repourl=https://consolemods.org/wiki/images/0/0a/ConsoleModsRepo.ini
3 |
4 | [apps]
5 | name=ConsoleMods.org - Homebrew Apps
6 | iniurl=https://consolemods.org/wiki/images/b/b9/ConsoleModsRepo_Apps.ini
7 | type=App
8 | reload=false
9 |
10 | [games]
11 | name=ConsoleMods.org - Homebrew Games
12 | iniurl=https://consolemods.org/wiki/images/4/43/ConsoleModsRepo_Games.ini
13 | type=Homebrew
14 | reload=false
15 |
16 | [emulators]
17 | name=ConsoleMods.org - Emulators
18 | iniurl=https://consolemods.org/wiki/images/f/fb/ConsoleModsRepo_Emulators.ini
19 | type=Emulator
20 | reload=false
21 |
22 | [dashboards]
23 | name=ConsoleMods.org - Dashboards
24 | iniurl=https://consolemods.org/wiki/images/f/fb/ConsoleModsRepo_Dashboards.ini
25 | type=Other
26 | reload=false
27 |
28 | [other]
29 | name=ConsoleMods.org - Other
30 | iniurl=https://consolemods.org/wiki/images/f/fb/ConsoleModsRepo_Other.ini
31 | type=Other
32 | reload=false
33 |
34 | #####################################
35 | # name: Name of submenu of repository
36 | # iniurl: URL to submenu of repository
37 | # type: Type of content
38 | # App - Installs to user's specified Applications folder or /Apps/
39 | # Homebrew - Installs to user's specified Homebrew folder or /Emulators/
40 | # Emulator - Installs to user's specified Emulators folder or /Emulators/
41 | # Game - Installs to /Games/
42 | # Other - Custom path in TestContent.ini
43 | # reload: Asks to restart Aurora after install
--------------------------------------------------------------------------------
/UtilityScripts/HomebrewStore/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/HomebrewStore/icon.png
--------------------------------------------------------------------------------
/UtilityScripts/LanguagePackDownloader/Main.lua:
--------------------------------------------------------------------------------
1 | scriptTitle = "Language Pack Downloader"
2 | scriptAuthor = "Swizzy"
3 | scriptVersion = 3
4 | scriptDescription = "Swizzy's Language Pack Downloader, downloads Language Packs compatible with your version of Aurora"
5 | scriptPermissions = { "http", "filesystem", "settings" }
6 |
7 | require("MenuSystem");
8 |
9 | listurl="http://zucattostricot.000webhostapp.com/list.ini"
10 |
11 | -- Main entry point to script
12 | function main()
13 | if Aurora.HasInternetConnection() ~= true then
14 | Script.ShowMessageBox("ERROR", "ERROR: This script requires an active internet connection to work...\n\nPlease make sure you have internet to your console before running the script", "OK");
15 | return;
16 | end
17 | print("-- " .. scriptTitle .. " Started...");
18 | if init() then
19 | MakeMainMenu();
20 | DoShowMenu(); -- This is basically where all the magic starts
21 | FileSystem.DeleteDirectory(absoluteDownloadsPath);
22 | else
23 | Script.ShowMessageBox("ERROR", "ERROR: There was an error while downloading/processing the language pack list...", "OK");
24 | end
25 | print("-- " .. scriptTitle .. " Ended...");
26 | end
27 |
28 | function init()
29 | ret = Http.Get(listurl);
30 | if ret.Success then
31 | ini = IniFile.LoadString(ret.OutputData);
32 | ver = Aurora.GetDashVersion();
33 | ver = ver.Major .. "." .. ver.Minor;
34 | basePath = ini:ReadValue(ver, "path", "");
35 | url = ini:ReadValue(ver, "url", "");
36 | if basePath == "" or url == "" then
37 | return false; -- It's not valid
38 | end
39 | ret = Http.Get(url);
40 | if ret.Success then
41 | ini = IniFile.LoadString(ret.OutputData);
42 | downloadsPath = "Downloads\\";
43 | absoluteDownloadsPath = Script.GetBasePath() .. downloadsPath;
44 | FileSystem.DeleteDirectory(absoluteDownloadsPath);
45 | return true;
46 | end
47 |
48 | end
49 | return false;
50 | end
51 |
52 | function MakeMainMenu()
53 | Menu.SetTitle(scriptTitle);
54 | Menu.SetGoBackText("");
55 | for _, v in pairs(ini:GetAllSections()) do
56 | local title = ini:ReadValue(v, "lang", "") .. " by ".. ini:ReadValue(v, "translator", "");
57 | if title ~= "" then
58 | Menu.AddMainMenuItem(Menu.MakeMenuItem(title, ini:GetSection(v)))
59 | end
60 | end
61 | end
62 |
63 | function DoShowMenu()
64 | local ret = {}
65 | local canceled = false;
66 | local menuItem = {}
67 | ret, _, canceled = Menu.ShowMainMenu();
68 | if not canceled then
69 | HandleSelection(ret);
70 | end
71 | end
72 |
73 | function HandleSelection(selection)
74 | local info = "";
75 | info = info .. "Language: "..selection.lang.."\n";
76 | info = info .. "Translator: "..selection.translator.."\n";
77 | info = info .. "\n\n\nDo you want to install this Language Pack?";
78 | local ret = Script.ShowMessageBox("", info, "Yes", "No");
79 | if ret.Button == 1 then
80 | HandleInstall(selection, basePath)
81 | end
82 | DoShowMenu();
83 | end
84 |
85 | function HandleInstall(selection, path)
86 | local installPath = path..selection.name;
87 | local filename = selection.name;
88 | if FileSystem.FileExists(installPath) then
89 | if not HandleAlreadyExists(filename) then
90 | while FileSystem.FileExists(installPath) do
91 | installPath, filename, canceled = GetNewName(filename, path, "Select new filename:", ".xzp");
92 | if canceled then
93 | return false; -- We're not going to continue trying this
94 | end
95 | end
96 | end
97 | end
98 | Script.SetStatus("Downloading Language Pack...");
99 | Script.SetProgress(0);
100 | local http = Http.Get(selection.url, downloadsPath..selection.name);
101 | if http.Success then
102 | Script.SetStatus("Installing Language Pack...");
103 | Script.SetProgress(50);
104 | local result = FileSystem.MoveFile(http.OutputPath, installPath, true);
105 | Settings.SetSystem("LanguagePack", filename);
106 | Script.SetStatus("Done! Returning to menu...");
107 | Script.SetProgress(100);
108 | local ret = Script.ShowMessageBox("Reload Required", "A Reload is required for your changes to take effect\n\nDo you want to reload Aurora now?", "Yes", "No");
109 | if ret.Button == 1 then
110 | Aurora.Restart();
111 | end
112 | if result == true then
113 | return true;
114 | else
115 | Script.ShowMessageBox("ERROR", "Installation failed!", "OK");
116 | end
117 | else
118 | Script.ShowMessageBox("ERROR", "Download failed\n\nPlease try again later...", "OK");
119 | end
120 | return false;
121 | end
122 |
123 |
124 | function HandleAlreadyExists(name)
125 | local msg = "There is a Language Pack already installed with the name:\n"..name.."\n\nDo you want to overwrite/replace it?";
126 | local ret = Script.ShowMessageBox("Language Pack Already Exists", msg, "No", "Yes");
127 | if ret.Canceled or ret.Button ~= 2 then
128 | return false;
129 | end
130 | return true;
131 | end
132 |
133 | function GetNewName(currentName, path, prompt, extension)
134 | local extlen = 0;
135 | if extension ~= nil then
136 | extlen = 0 - string.len(extension);
137 | if string.lower(string.sub(currentName, extlen)) == extension then
138 | currentName = string.sub(currentName, 0, extlen - 1);
139 | end
140 | end
141 | local ret = Script.ShowKeyboard(scriptTitle, prompt, currentName, 0);
142 | if ret.Canceled == false then
143 | if extension ~= nil then
144 | if string.lower(string.sub(ret.Buffer, extlen)) ~= extension then
145 | ret.Buffer = ret.Buffer..extension;
146 | end
147 | end
148 | return path..ret.Buffer, ret.Buffer, ret.Canceled;
149 | end
150 | return path..currentName, currentName, ret.Canceled;
151 | end
152 |
--------------------------------------------------------------------------------
/UtilityScripts/LanguagePackDownloader/MenuSystem.lua:
--------------------------------------------------------------------------------
1 | local TopLevelMenu = {}
2 | TopLevelMenu.SubMenu = {}
3 | local TitleText = "Menu";
4 | local EmptyText = "No Menu Available";
5 | local ExitOnCancel = false;
6 | local GoBackText = "Go Back";
7 | local SortAlphaBetically = true;
8 |
9 | _ShowMenu = function(menuItem)
10 | local menu = {}
11 | if SortAlphaBetically then
12 | table.sort(menuItem, function(a, b) return type(a) == "table" and type(b) == "table" and a.Name < b.Name; end);
13 | end
14 | for k, v in ipairs(menuItem) do
15 | if type(v) == "table" then
16 | menu[k] = v.Name;
17 | else
18 | if GoBackText ~= nil and GoBackText ~= "" then
19 | menu[k] = GoBackText; -- Only show the "Go Back" option if we actually have it set to something
20 | end
21 | end
22 | end
23 | local ret = Script.ShowPopupList(TitleText, EmptyText, menu);
24 | if ret.Canceled == true or (ret.Selected.Key == 1 and ret.Selected.Value == GoBackText) then
25 | if ret.Canceled == true then
26 | if ExitOnCancel == true then
27 | return nil, menuItem, ret.Canceled, nil;
28 | end
29 | end
30 | if menuItem.Parent == nil or menuItem.Parent.Parent == nil then
31 | return nil, menuItem, ret.Canceled, nil;
32 | else
33 | menu = nil;
34 | ret = nil;
35 | return _ShowMenu(menuItem.Parent.Parent);
36 | end
37 | else
38 | ret = menuItem[ret.Selected.Key];
39 | if ret.SubMenu == nil then
40 | return ret.Data, menuItem, false, ret;
41 | else
42 | menu = nil;
43 | return _ShowMenu(ret.SubMenu);
44 | end
45 | end
46 | end
47 |
48 | Menu = {
49 | ShowMenu = function(menuItem)
50 | return _ShowMenu(menuItem); -- Call the actual function^
51 | end,
52 | ShowMainMenu = function()
53 | return _ShowMenu(TopLevelMenu.SubMenu); -- Show the main menu (TopLevelMenu.SubMenu)
54 | end,
55 | ResetMenu = function()
56 | TopLevelMenu.SubMenu = {} -- Reset the menu to be empty
57 | TitleText = "Menu"; -- Reset title to the default one
58 | EmptyText = "No Menu Available"; -- Reset empty text to the default one
59 | ExitOnCancel = false; -- Reset ExitOnCancel to it's default value
60 | GoBackText = "Go Back"; -- Reset GoBackText to it's default value
61 | end,
62 | MakeMenuItem = function(displayName, data)
63 | return {
64 | Name = displayName; -- Set the Name Property to be displayed in the menu
65 | Data = data; -- Set the data property, if any...
66 | }
67 | end,
68 | AddSubMenuItem = function(menuItem, subMenuItem)
69 | if menuItem.SubMenu == nil then -- Check if we have a SubMenu already or not
70 | menuItem.SubMenu = {} -- Add the SubMenu table
71 | menuItem.SubMenu[1] = GoBackText; -- Add a "Go Back" to the Sub Menu
72 | menuItem.SubMenu.Parent = menuItem; -- Set the parent of the SubMenu to the menu we're adding it to
73 | end
74 | subMenuItem.Parent = menuItem.SubMenu; -- Set the parent of the subMenuItem to the SubMenu table so we can go further up the chain
75 | table.insert(menuItem.SubMenu, subMenuItem); -- Insert the subMenuItem to the menu
76 | end,
77 | AddMainMenuItem = function(menuItem)
78 | if TopLevelMenu.SubMenu == nil then -- Check if we have a SubMenu already or not
79 | TopLevelMenu.SubMenu = {} -- Add the SubMenu table
80 | TopLevelMenu.SubMenu.Parent = TopLevelMenu; -- Set SubMenu parent to TopLevelMenu
81 | end
82 | menuItem.Parent = TopLevelMenu.SubMenu; -- Set the parent of the subMenuItem to the SubMenu table so we can go further up the chain
83 | table.insert(TopLevelMenu.SubMenu, menuItem); -- Insert the menuItem to the menu
84 | end,
85 | SetTitle = function(title)
86 | TitleText = title; -- Set the TitleText
87 | end,
88 | SetEmptyText = function(emptyText)
89 | EmptyText = emptyText; -- Set the text to be shown if the menu is empty
90 | end,
91 | SetExitOnCancel = function(exitOnCancel)
92 | ExitOnCancel = exitOnCancel == true; -- Set the flag that tells the menu system to exit upon being canceled (B being pressed)
93 | end,
94 | SetGoBackText = function(goBackText)
95 | GoBackText = goBackText; -- Set the text for the return/back menu item
96 | end,
97 | SetSortAlphaBetically = function(sortAlphaBetically)
98 | SortAlphaBetically = sortAlphaBetically == true; -- Set the flag that tells us if we should sort alphabetically
99 | end,
100 | IsMainMenu = function(menu)
101 | return menu == TopLevelMenu.SubMenu;
102 | end
103 | }
104 |
105 | return Menu;
--------------------------------------------------------------------------------
/UtilityScripts/LanguagePackDownloader/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/LanguagePackDownloader/icon.png
--------------------------------------------------------------------------------
/UtilityScripts/LanguagePackDownloader/ini/0.6.ini:
--------------------------------------------------------------------------------
1 | [sv-SE]
2 | lang=Svenska
3 | translator=Sopor
4 | name=sv-se.pkg
5 | url=http://lang.gxarena.com/0.6/sv-se.xzp
6 | [en-US]
7 | lang=English
8 | translator=Phoenix
9 | name=en-us.pkg
10 | url=http://lang.gxarena.com/0.6/en-us.xzp
--------------------------------------------------------------------------------
/UtilityScripts/LanguagePackDownloader/ini/list.ini:
--------------------------------------------------------------------------------
1 | [0.6]
2 | url=http://lang.gxarena.com/0.6.ini
3 | path=\path\to\languagepacks\
4 | [0.7]
5 | url=http://lang.gxarena.com/0.7.ini
6 | path=\path\to\languagepacks\
--------------------------------------------------------------------------------
/UtilityScripts/LiNKTop5/AuroraUI.lua:
--------------------------------------------------------------------------------
1 | -- Enum used for setting type
2 | KeyboardFlag = enum {
3 | Default = 0,
4 | Full = 1,
5 | Email = 2,
6 | Gamertag = 4,
7 | Phone = 8,
8 | IPAddress = 16,
9 | Numeric = 32,
10 | Alphabet = 64,
11 | Password = 128,
12 | Subscription = 256,
13 | FocusDone = 268435456,
14 | Highlight = 536870912
15 | }
16 |
17 | PopupType = enum {
18 | Default = 0,
19 | Background = 1,
20 | Skin = 2,
21 | CoverLayout = 3,
22 | Language = 4 ,
23 | }
24 |
25 | PermissionFlag = enum {
26 | None = 0,
27 | FileManager = 256,
28 | View = 512,
29 | Settings = 1024,
30 | Details = 2048,
31 | QuickView = 4096,
32 | DeleteContent = 8192,
33 | RenameGame = 16384
34 | }
35 |
36 | GizmoCommand = enum {
37 | A = 1,
38 | X = 2,
39 | Y = 3,
40 | }
41 |
42 | XuiMessage = enum {
43 | Unknown = 0,
44 | Init = 1,
45 | Close = 2,
46 | Press = 3,
47 | Timer = 4,
48 | KeyDown = 5,
49 | KeyUp = 6,
50 | SelChanged = 7,
51 | Keyboard = 8,
52 | Passcode = 9,
53 | Msgbox = 10,
54 | Command = 11,
55 | };
56 |
57 | XuiObject = enum {
58 | Element = 0,
59 | Text = 1,
60 | Image = 2,
61 | Control = 3,
62 | Button = 4,
63 | RadioButton = 5,
64 | RadioGroup = 6,
65 | Label = 7,
66 | Edit = 8,
67 | List = 9,
68 | Scene = 10,
69 | TabScene = 11,
70 | ProgressBar = 12,
71 | Slider = 13,
72 | Checkbox = 14
73 | };
--------------------------------------------------------------------------------
/UtilityScripts/LiNKTop5/gizmo.lua:
--------------------------------------------------------------------------------
1 | local Gizmo = {}; -- public namespace
2 | local GP = {}; -- private namespace
3 | local Xui = {};
4 |
5 | function Gizmo.run( scriptData )
6 | local hGizmo = GizmoUI.CreateInstance();
7 | if hGizmo ~= nil then
8 | hGizmo:RegisterCallback( XuiMessage.Init, GP.fnOnInit );
9 | hGizmo:RegisterCallback( XuiMessage.Command, GP.fnOnCommand );
10 |
11 | return hGizmo:InvokeUI(Script.GetBasePath(), "LiNK Top 5", "scene.xur", "skin.xur", scriptData );
12 | end
13 | end
14 |
15 | function GP.fnOnInit( this, initData )
16 | -- Find our total controls
17 | Xui["totalusers"] = this:RegisterControl( XuiObject.Label, "totalusers" );
18 | Xui["totalonline"] = this:RegisterControl( XuiObject.Label, "totalonline" );
19 |
20 | -- Find our game1 controls
21 | Xui["g1img"] = this:RegisterControl( XuiObject.Image, "game1img" );
22 | Xui["g1title"] = this:RegisterControl( XuiObject.Label, "game1title" );
23 | Xui["g1users"] = this:RegisterControl( XuiObject.Label, "game1users" );
24 |
25 | -- Find our game2 controls
26 | Xui["g2img"] = this:RegisterControl( XuiObject.Image, "game2img" );
27 | Xui["g2title"] = this:RegisterControl( XuiObject.Label, "game2title" );
28 | Xui["g2users"] = this:RegisterControl( XuiObject.Label, "game2users" );
29 |
30 | -- Find our game3 controls
31 | Xui["g3img"] = this:RegisterControl( XuiObject.Image, "game3img" );
32 | Xui["g3title"] = this:RegisterControl( XuiObject.Label, "game3title" );
33 | Xui["g3users"] = this:RegisterControl( XuiObject.Label, "game3users" );
34 |
35 | -- Find our game4 controls
36 | Xui["g4img"] = this:RegisterControl( XuiObject.Image, "game4img" );
37 | Xui["g4title"] = this:RegisterControl( XuiObject.Label, "game4title" );
38 | Xui["g4users"] = this:RegisterControl( XuiObject.Label, "game4users" );
39 |
40 | -- Find our game5 controls
41 | Xui["g5img"] = this:RegisterControl( XuiObject.Image, "game5img" );
42 | Xui["g5title"] = this:RegisterControl( XuiObject.Label, "game5title" );
43 | Xui["g5users"] = this:RegisterControl( XuiObject.Label, "game5users" );
44 |
45 | -- Disable the A button
46 | this:SetCommandEnabled( GizmoCommand.A, true );
47 | this:SetCommandText( GizmoCommand.A, "Refresh" );
48 |
49 | -- Apply total counts
50 | Xui.totalusers:SetText( (initData.total) .. " Users" );
51 | Xui.totalonline:SetText( (initData.online) .. " Players Online" );
52 |
53 |
54 | -- Apply images
55 | Xui.g1img:SetImagePath( "gameicons\\" .. initData.rooms[1].titleid .. ".png" );
56 | Xui.g2img:SetImagePath( "gameicons\\" .. initData.rooms[2].titleid .. ".png" );
57 | Xui.g3img:SetImagePath( "gameicons\\" .. initData.rooms[3].titleid .. ".png" );
58 | Xui.g4img:SetImagePath( "gameicons\\" .. initData.rooms[4].titleid .. ".png" );
59 | Xui.g5img:SetImagePath( "gameicons\\" .. initData.rooms[5].titleid .. ".png" );
60 |
61 | -- Apply Titles
62 | Xui.g1title:SetText( initData.rooms[1].room );
63 | Xui.g2title:SetText( initData.rooms[2].room );
64 | Xui.g3title:SetText( initData.rooms[3].room );
65 | Xui.g4title:SetText( initData.rooms[4].room );
66 | Xui.g5title:SetText( initData.rooms[5].room );
67 |
68 | -- Apply Player Count
69 | Xui.g1users:SetText( (initData.rooms[1].users) .. " Players" );
70 | Xui.g2users:SetText( (initData.rooms[2].users) .. " Players" );
71 | Xui.g3users:SetText( (initData.rooms[3].users) .. " Players" );
72 | Xui.g4users:SetText( (initData.rooms[4].users) .. " Players" );
73 | Xui.g5users:SetText( (initData.rooms[5].users) .. " Players" );
74 | end
75 |
76 | function GP.fnOnCommand( this, commandType )
77 | if commandType == GizmoCommand.A then
78 | -- A button was pressed- so let's dismiss our UI and refresh
79 | this:Dismiss("refresh");
80 | end
81 | end
82 |
83 | -- Return our script functionality
84 | return Gizmo;
--------------------------------------------------------------------------------
/UtilityScripts/LiNKTop5/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/LiNKTop5/icon.png
--------------------------------------------------------------------------------
/UtilityScripts/LiNKTop5/main.lua:
--------------------------------------------------------------------------------
1 | scriptTitle = "LiNK Top-5"
2 | scriptAuthor = "Phoenix"
3 | scriptVersion = 1
4 | scriptDescription = "See the top-5 active games on LiNK."
5 | scriptIcon = "icon.png";
6 |
7 | -- Define script permissions to enable access to libraries
8 | scriptPermissions = { "http" }
9 |
10 | -- Include our helper functions / enumerations
11 | require("AuroraUI");
12 | json = require("json");
13 | gizmo = require("Gizmo");
14 |
15 | -- Main entry point to script
16 | function main()
17 |
18 | -- Start by creating our directory for our game icons
19 | Script.SetStatus( "Initializing script...");
20 | Script.CreateDirectory( "GameIcons" );
21 |
22 | -- Run our method to obtain the LiNK top-5
23 | local linkInfo = nil;
24 | ::DownloadTop5::
25 | linkInfo = DownloadLiNKTop5();
26 | if linkInfo ~= nil then
27 | -- Pass our LiNK data to our gizmo and run the scene
28 | local cmd = gizmo.run( linkInfo );
29 | if cmd.Result == "refresh" then
30 | Script.SetStatus("Refreshing...");
31 | goto DownloadTop5;
32 | end
33 | else
34 | Script.ShowNotification( "" );
35 | end
36 | end
37 |
38 |
39 | -- Helper function to download current/forecast weather data
40 | function DownloadLiNKTop5()
41 | local infoTable = {};
42 | Script.SetStatus("Obtaining LiNK data..." );
43 | Script.SetProgress( 25 );
44 | local url = "http://phoenix.xboxunity.net/linkgizmo.php";
45 | local httpData = Http.Get( url );
46 | if httpData.Success == true then
47 | infoTable = json:decode(httpData.OutputData);
48 |
49 | -- Download icons for each game in the top 5 and store in game icons directory
50 | local counter = 1;
51 | for k,v in pairs(infoTable.rooms) do
52 | local iconUrl = v.icon;
53 | local filename = "GameIcons\\" .. v.titleid .. ".png";
54 | if Script.FileExists( filename ) == false then
55 | local httpIcon = Http.Get( iconUrl, filename );
56 | if httpIcon.Success == true then
57 | print("icon '" .. filename .. "' download successfully" );
58 | end
59 | end
60 |
61 | Script.SetProgress( 25 + counter * 15 );
62 | counter = counter + 1;
63 | end
64 | else
65 | infoTable = nil;
66 | end
67 |
68 | -- return table
69 | return infoTable;
70 | end
71 |
--------------------------------------------------------------------------------
/UtilityScripts/LiNKTop5/scene.xui:
--------------------------------------------------------------------------------
1 |
2 |
3 | 780.000000
4 | 352.000000
5 |
6 |
7 |
8 | GizmoScene
9 | 780.000000
10 | 352.000000
11 | [LayerFolders]0|-Totals|2|+|0|-Games|5|+|0[/LayerFolders]
12 | ScnLuaGizmo
13 |
14 |
15 |
16 | Game5
17 | 780.000000
18 | 48.000000
19 | 0.000000,276.999969,0.000000
20 |
21 |
22 |
23 | game5img
24 | 48.000000
25 | 48.000000
26 | 0.000000,0.000031,0.000000
27 | 16
28 |
29 |
30 |
31 |
32 | game5title
33 | 530.000000
34 | 25.000000
35 | 68.000000,14.000031,0.000000
36 | XuiLabel_Regular_18pt_Left
37 | Not Available
38 |
39 |
40 |
41 |
42 | game5users
43 | 162.000000
44 | 25.000000
45 | 618.000061,14.000031,0.000000
46 | XuiLabel_Regular_18pt_Right
47 | 0 Players
48 |
49 |
50 |
51 |
52 |
53 | Game4
54 | 780.000000
55 | 48.000000
56 | 0.000000,219.000000,0.000000
57 |
58 |
59 |
60 | game4img
61 | 48.000000
62 | 48.000000
63 | 16
64 |
65 |
66 |
67 |
68 | game4title
69 | 530.000000
70 | 25.000000
71 | 68.000000,14.000000,0.000000
72 | XuiLabel_Regular_18pt_Left
73 | Not Available
74 |
75 |
76 |
77 |
78 | game4users
79 | 162.000000
80 | 25.000000
81 | 618.000061,14.000000,0.000000
82 | XuiLabel_Regular_18pt_Right
83 | 0 Players
84 |
85 |
86 |
87 |
88 |
89 | Game3
90 | 780.000000
91 | 48.000000
92 | 0.000000,160.999985,0.000000
93 |
94 |
95 |
96 | game3img
97 | 48.000000
98 | 48.000000
99 | 0.000000,0.000015,0.000000
100 | 16
101 |
102 |
103 |
104 |
105 | game3title
106 | 530.000000
107 | 25.000000
108 | 68.000000,14.000015,0.000000
109 | XuiLabel_Regular_18pt_Left
110 | Not Available
111 |
112 |
113 |
114 |
115 | game3users
116 | 162.000000
117 | 25.000000
118 | 618.000061,14.000015,0.000000
119 | XuiLabel_Regular_18pt_Right
120 | 0 Players
121 |
122 |
123 |
124 |
125 |
126 | Game2
127 | 780.000000
128 | 48.000000
129 | 0.000000,103.000000,0.000000
130 |
131 |
132 |
133 | game2img
134 | 48.000000
135 | 48.000000
136 | 16
137 |
138 |
139 |
140 |
141 | game2title
142 | 530.000000
143 | 25.000000
144 | 68.000000,14.000000,0.000000
145 | XuiLabel_Regular_18pt_Left
146 | Not Available
147 |
148 |
149 |
150 |
151 | game2users
152 | 162.000000
153 | 25.000000
154 | 618.000061,14.000000,0.000000
155 | XuiLabel_Regular_18pt_Right
156 | 0 Players
157 |
158 |
159 |
160 |
161 |
162 | Game1
163 | 780.000000
164 | 48.000000
165 | 0.000000,44.999996,0.000000
166 |
167 |
168 |
169 | game1img
170 | 48.000000
171 | 48.000000
172 | 0.000000,0.000004,0.000000
173 | 16
174 |
175 |
176 |
177 |
178 | game1title
179 | 530.000000
180 | 25.000000
181 | 68.000008,14.000008,0.000000
182 | XuiLabel_Regular_18pt_Left
183 | Not Available
184 |
185 |
186 |
187 |
188 | game1users
189 | 162.000000
190 | 25.000000
191 | 618.000061,14.000008,0.000000
192 | XuiLabel_Regular_18pt_Right
193 | 0 Players
194 |
195 |
196 |
197 |
198 |
199 | totalonline
200 | 390.000000
201 | 28.000000
202 | 390.000031,0.000000,0.000000
203 | XuiLabel_Regular_20pt_Right
204 | 0 Players Online
205 |
206 |
207 |
208 |
209 | totalusers
210 | 390.000000
211 | 28.000000
212 | XuiLabel_Regular_20pt_Left
213 | 0 Users
214 |
215 |
216 |
217 |
218 |
219 | Normal
220 |
221 |
222 |
223 | EndNormal
224 |
225 | stop
226 |
227 |
228 |
229 |
230 |
231 |
--------------------------------------------------------------------------------
/UtilityScripts/LiNKTop5/scene.xur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/LiNKTop5/scene.xur
--------------------------------------------------------------------------------
/UtilityScripts/LiNKTop5/skin.xui:
--------------------------------------------------------------------------------
1 |
2 |
3 | 640.000000
4 | 480.000000
5 |
6 |
7 |
8 | XuiLabel_Regular_18pt_Left
9 | 640.000000
10 | 480.000000
11 | 5
12 |
13 |
14 |
15 | txtMain
16 | 1280.000000
17 | 64.000000
18 | -1.000000,-8.000000,0.000000
19 | 0.500000,0.500000,1.000000
20 | 5
21 | 0xff444444
22 | 0x800f0f0f
23 | 36.000000
24 | 16656
25 |
26 |
27 |
28 |
29 |
30 | Normal
31 |
32 |
33 |
34 | EndNormal
35 |
36 | stop
37 |
38 |
39 | NormalDisable
40 |
41 |
42 |
43 | EndNormalDisable
44 |
45 | stop
46 |
47 |
48 |
49 |
50 |
51 |
52 | XuiLabel_Regular_18pt_Right
53 | 640.000000
54 | 480.000000
55 | 5
56 |
57 |
58 |
59 | txtMain
60 | 1280.000000
61 | 64.000000
62 | -1.000000,-8.000000,0.000000
63 | 0.500000,0.500000,1.000000
64 | 5
65 | 0xff444444
66 | 0x800f0f0f
67 | 36.000000
68 | 16912
69 |
70 |
71 |
72 |
73 |
74 | Normal
75 |
76 |
77 |
78 | EndNormal
79 |
80 | stop
81 |
82 |
83 | NormalDisable
84 |
85 |
86 |
87 | EndNormalDisable
88 |
89 | stop
90 |
91 |
92 |
93 |
94 |
95 |
96 | XuiLabel_Regular_20pt_Left
97 | 250.000000
98 | 42.000000
99 | 5
100 |
101 |
102 |
103 | txtMain
104 | 500.000000
105 | 102.000000
106 | -1.000000,-9.500000,0.000000
107 | 0.500000,0.500000,1.000000
108 | 5
109 | 0xff444444
110 | 0x800f0f0f
111 | 40.000000
112 | 16656
113 |
114 |
115 |
116 |
117 |
118 | Normal
119 |
120 |
121 |
122 | EndNormal
123 |
124 | stop
125 |
126 |
127 | NormalDisable
128 |
129 |
130 |
131 | EndNormalDisable
132 |
133 | stop
134 |
135 |
136 |
137 | txtMain
138 | TextColor
139 |
140 |
141 | 0
142 | 0xff444444
143 |
144 |
145 |
146 | 0
147 | 0xff444444
148 |
149 |
150 |
151 | 0
152 | 0xffaaaaaa
153 |
154 |
155 |
156 | 0
157 | 0xffaaaaaa
158 |
159 |
160 |
161 |
162 |
163 |
164 | XuiLabel_Regular_20pt_Right
165 | 250.000000
166 | 42.000000
167 | 5
168 |
169 |
170 |
171 | txtMain
172 | 500.000000
173 | 102.000000
174 | -1.000000,-9.500000,0.000000
175 | 0.500000,0.500000,1.000000
176 | 5
177 | 0xff444444
178 | 0x800f0f0f
179 | 40.000000
180 | 16912
181 |
182 |
183 |
184 |
185 |
186 | Normal
187 |
188 |
189 |
190 | EndNormal
191 |
192 | stop
193 |
194 |
195 | NormalDisable
196 |
197 |
198 |
199 | EndNormalDisable
200 |
201 | stop
202 |
203 |
204 |
205 | txtMain
206 | TextColor
207 |
208 |
209 | 0
210 | 0xff444444
211 |
212 |
213 |
214 | 0
215 | 0xff444444
216 |
217 |
218 |
219 | 0
220 | 0xffaaaaaa
221 |
222 |
223 |
224 | 0
225 | 0xffaaaaaa
226 |
227 |
228 |
229 |
230 |
231 |
--------------------------------------------------------------------------------
/UtilityScripts/LiNKTop5/skin.xur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/LiNKTop5/skin.xur
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/AuroraUI.lua:
--------------------------------------------------------------------------------
1 | -- Enum used for setting type
2 | KeyboardFlag = enum {
3 | Default = 0,
4 | Full = 1,
5 | Email = 2,
6 | Gamertag = 4,
7 | Phone = 8,
8 | IPAddress = 16,
9 | Numeric = 32,
10 | Alphabet = 64,
11 | Password = 128,
12 | Subscription = 256,
13 | FocusDone = 268435456,
14 | Highlight = 536870912
15 | }
16 |
17 | PopupType = enum {
18 | Default = 0,
19 | Background = 1,
20 | Skin = 2,
21 | CoverLayout = 3,
22 | Language = 4 ,
23 | }
24 |
25 | PermissionFlag = enum {
26 | None = 0,
27 | FileManager = 256,
28 | View = 512,
29 | Settings = 1024,
30 | Details = 2048,
31 | QuickView = 4096,
32 | DeleteContent = 8192,
33 | RenameGame = 16384
34 | }
35 |
36 | GizmoCommand = enum {
37 | A = 1,
38 | X = 2,
39 | Y = 3,
40 | }
41 |
42 | XuiMessage = enum {
43 | Unknown = 0,
44 | Init = 1,
45 | Close = 2,
46 | Press = 3,
47 | Timer = 4,
48 | KeyDown = 5,
49 | KeyUp = 6,
50 | SelChanged = 7,
51 | Keyboard = 8,
52 | Passcode = 9,
53 | Msgbox = 10,
54 | Command = 11,
55 | };
56 |
57 | XuiObject = enum {
58 | Element = 0,
59 | Text = 1,
60 | Image = 2,
61 | Control = 3,
62 | Button = 4,
63 | RadioButton = 5,
64 | RadioGroup = 6,
65 | Label = 7,
66 | Edit = 8,
67 | List = 9,
68 | Scene = 10,
69 | TabScene = 11,
70 | ProgressBar = 12,
71 | Slider = 13,
72 | Checkbox = 14
73 | };
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/GizmoOption.lua:
--------------------------------------------------------------------------------
1 | local GizmoOption = {}; -- public namespace
2 | local GP_Option = {}; -- private namespace
3 | local Xui_Option = {};
4 |
5 | function GizmoOption.run( scriptData )
6 | GizmoOption["options"] = scriptData;
7 |
8 | local hGizmo = GizmoUI.CreateInstance();
9 |
10 | if hGizmo ~= nil then
11 | hGizmo:RegisterCallback( XuiMessage.Init, GP_Option.OnInit );
12 | hGizmo:RegisterCallback( XuiMessage.Command, GP_Option.OnCommand );
13 |
14 | return hGizmo:InvokeUI(Script.GetBasePath(), "Network Speed Check - Options", "skin\\options.xur", "skin\\skin.xur", GizmoOption["options"] );
15 | end
16 | end
17 |
18 | function GP_Option.OnInit( this, initData )
19 | Xui_Option["downloadTestEnabledCheck"] = this:RegisterControl( XuiObject.Checkbox, "downloadTestEnabledCheck" );
20 | Xui_Option["downloadCountSlider"] = this:RegisterControl( XuiObject.Slider, "downloadCountSlider" );
21 | Xui_Option["uploadTestEnabledCheck"] = this:RegisterControl( XuiObject.Checkbox, "uploadTestEnabledCheck" );
22 | Xui_Option["uploadCountSlider"] = this:RegisterControl( XuiObject.Slider, "uploadCountSlider" );
23 | Xui_Option["localIpTestEnabledCheck"] = this:RegisterControl( XuiObject.Checkbox, "localIpTestEnabledCheck" );
24 | Xui_Option["remoteIpTestEnabledCheck"] = this:RegisterControl( XuiObject.Checkbox, "remoteIpTestEnabledCheck" );
25 | Xui_Option["serverIpTestEnabledCheck"] = this:RegisterControl( XuiObject.Checkbox, "serverIpTestEnabledCheck" );
26 | Xui_Option["pingTestEnabledCheck"] = this:RegisterControl( XuiObject.Checkbox, "pingTestEnabledCheck" );
27 |
28 | -- init Default options
29 | if initData.downloadTest.enabled then
30 | Xui_Option.downloadTestEnabledCheck:SetCheck(true);
31 | end
32 |
33 | if initData.downloadTest.count ~= nil then
34 | Xui_Option.downloadCountSlider:SetValue(initData.downloadTest.count);
35 | end
36 |
37 | if initData.uploadTest.enabled then
38 | Xui_Option.uploadTestEnabledCheck:SetCheck(true);
39 | end
40 |
41 | if initData.uploadTest.count ~= nil then
42 | Xui_Option.uploadCountSlider:SetValue(initData.uploadTest.count);
43 | end
44 |
45 | if initData.additionalInfoTest.localIp then
46 | Xui_Option.localIpTestEnabledCheck:SetCheck(true);
47 | end
48 |
49 | if initData.additionalInfoTest.remoteIp then
50 | Xui_Option.remoteIpTestEnabledCheck:SetCheck(true);
51 | end
52 |
53 | if initData.additionalInfoTest.serverIp then
54 | Xui_Option.serverIpTestEnabledCheck:SetCheck(true);
55 | end
56 |
57 | if initData.pingJitterHopsTest then
58 | Xui_Option.pingTestEnabledCheck:SetCheck(true);
59 | end
60 |
61 | this:SetCommandEnabled( GizmoCommand.A, true );
62 | this:SetCommandEnabled( GizmoCommand.Y, true );
63 | this:SetCommandText( GizmoCommand.Y, "Continue" );
64 | end
65 |
66 | function GP_Option.OnCommand( this, commandType )
67 | if commandType == GizmoCommand.Y then
68 | -- save new options to the referenced options-table
69 | if Xui_Option.downloadTestEnabledCheck:IsChecked() then
70 | GizmoOption.options.downloadTest.enabled = true;
71 | else
72 | GizmoOption.options.downloadTest.enabled = false;
73 | end
74 |
75 | GizmoOption.options.downloadTest.count = Xui_Option.downloadCountSlider:GetValue();
76 |
77 | if Xui_Option.uploadTestEnabledCheck:IsChecked() then
78 | GizmoOption.options.uploadTest.enabled = true;
79 | else
80 | GizmoOption.options.uploadTest.enabled = false;
81 | end
82 |
83 | GizmoOption.options.uploadTest.count = Xui_Option.uploadCountSlider:GetValue();
84 |
85 | if Xui_Option.localIpTestEnabledCheck:IsChecked() then
86 | GizmoOption.options.additionalInfoTest.localIp = true;
87 | else
88 | GizmoOption.options.additionalInfoTest.localIp = false;
89 | end
90 |
91 | if Xui_Option.remoteIpTestEnabledCheck:IsChecked() then
92 | GizmoOption.options.additionalInfoTest.remoteIp = true;
93 | else
94 | GizmoOption.options.additionalInfoTest.remoteIp = false;
95 | end
96 |
97 | if Xui_Option.serverIpTestEnabledCheck:IsChecked() then
98 | GizmoOption.options.additionalInfoTest.serverIp = true;
99 | else
100 | GizmoOption.options.additionalInfoTest.serverIp = false;
101 | end
102 |
103 | if Xui_Option.pingTestEnabledCheck:IsChecked() then
104 | GizmoOption.options.pingJitterHopsTest = true;
105 | else
106 | GizmoOption.options.pingJitterHopsTest = false;
107 | end
108 |
109 | this:Dismiss("continue");
110 | end
111 | end
112 |
113 | return GizmoOption;
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/GizmoResult.lua:
--------------------------------------------------------------------------------
1 | local GizmoResult = {}; -- public namespace
2 | local GP_Result = {}; -- private namespace
3 | local Xui_Result = {};
4 |
5 | function GizmoResult.run( scriptData )
6 | local hGizmo = GizmoUI.CreateInstance();
7 | if hGizmo ~= nil then
8 | hGizmo:RegisterCallback( XuiMessage.Init, GP_Result.fnOnInit );
9 | hGizmo:RegisterCallback( XuiMessage.Command, GP_Result.fnOnCommand );
10 |
11 | return hGizmo:InvokeUI(Script.GetBasePath(), "Network Speed Check - Result", "skin\\result.xur", "skin\\skin.xur", scriptData );
12 | end
13 | end
14 |
15 | function GP_Result.fnOnInit( this, initData )
16 | Xui_Result["downstreamLable"] = this:RegisterControl( XuiObject.Label, "downstreamLable" );
17 | Xui_Result["downstreamValueMbit"] = this:RegisterControl( XuiObject.Label, "downstreamValueMbit" );
18 | Xui_Result["downstreamValueMByte"] = this:RegisterControl( XuiObject.Label, "downstreamValueMByte" );
19 | Xui_Result["upstreamLable"] = this:RegisterControl( XuiObject.Label, "upstreamLable" );
20 | Xui_Result["upstreamValueMbit"] = this:RegisterControl( XuiObject.Label, "upstreamValueMbit" );
21 | Xui_Result["upstreamValueMByte"] = this:RegisterControl( XuiObject.Label, "upstreamValueMByte" );
22 | Xui_Result["localIpLable"] = this:RegisterControl( XuiObject.Label, "localIpLable" );
23 | Xui_Result["localIpValue"] = this:RegisterControl( XuiObject.Label, "localIpValue" );
24 | Xui_Result["remoteIpLable"] = this:RegisterControl( XuiObject.Label, "remoteIpLable" );
25 | Xui_Result["remoteIpValue"] = this:RegisterControl( XuiObject.Label, "remoteIpValue" );
26 | Xui_Result["serverIpLable"] = this:RegisterControl( XuiObject.Label, "serverIpLable" );
27 | Xui_Result["serverIpValue"] = this:RegisterControl( XuiObject.Label, "serverIpValue" );
28 | Xui_Result["pingLable"] = this:RegisterControl( XuiObject.Label, "pingLable" );
29 | Xui_Result["pingValue"] = this:RegisterControl( XuiObject.Label, "pingValue" );
30 | Xui_Result["hopsLable"] = this:RegisterControl( XuiObject.Label, "hopsLable" );
31 | Xui_Result["hopsValue"] = this:RegisterControl( XuiObject.Label, "hopsValue" );
32 | Xui_Result["jitterLable"] = this:RegisterControl( XuiObject.Label, "jitterLable" );
33 | Xui_Result["jitterValue"] = this:RegisterControl( XuiObject.Label, "jitterValue" );
34 |
35 | Xui_Result["downstreamIcon"] = this:RegisterControl( XuiObject.Image, "downstreamIcon" );
36 | Xui_Result["upstreamIcon"] = this:RegisterControl( XuiObject.Image, "upstreamIcon" );
37 |
38 | local downstreamInMbitPerSecond = tostring(round((initData.downstreamInBPS/1024/1024*8), 3)) .. " Mbit/s";
39 | local downstreamInMBytePerSecond = tostring(round((initData.downstreamInBPS/1024/1024), 3)) .. " MByte/s";
40 | local upstreamInMbitPerSecond = tostring(round((initData.upstreamInBPS/1024/1024*8), 3)) .. " Mbit/s";
41 | local upstreamInMBytePerSecond = tostring(round((initData.upstreamInBPS/1024/1024), 3)) .. " MByte/s";
42 |
43 | Xui_Result.downstreamValueMbit:SetText( "-> " .. downstreamInMbitPerSecond );
44 | Xui_Result.downstreamValueMByte:SetText( "-> " .. downstreamInMBytePerSecond );
45 | Xui_Result.upstreamValueMbit:SetText( "-> " .. upstreamInMbitPerSecond );
46 | Xui_Result.upstreamValueMByte:SetText( "-> " .. upstreamInMBytePerSecond );
47 | Xui_Result.localIpValue:SetText( initData.localIp );
48 | Xui_Result.remoteIpValue:SetText( initData.remoteIp );
49 | Xui_Result.serverIpValue:SetText( initData.serverIp );
50 | Xui_Result.pingValue:SetText( initData.ping.avg .. " ms");
51 | Xui_Result.hopsValue:SetText( initData.hops );
52 | Xui_Result.jitterValue:SetText( initData.jitter .. " ms");
53 |
54 | Xui_Result.downstreamIcon:SetImagePath( "images\\" .. "downstreamArrow.png" );
55 | Xui_Result.upstreamIcon:SetImagePath( "images\\" .. "upstreamArrow.png" );
56 |
57 | this:SetCommandEnabled( GizmoCommand.A, false );
58 | end
59 |
60 | function GP_Result.fnOnCommand( this, commandType )
61 | -- do nothing, but close
62 | end
63 |
64 | return GizmoResult;
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/helper/helper.lua:
--------------------------------------------------------------------------------
1 | function getCurrentTimeInMilliseconds()
2 | local timeSnap = Aurora.GetTime();
3 |
4 | return ((timeSnap.Hour * 60 * 60 * 1000) +
5 | (timeSnap.Minute * 60 * 1000) +
6 | (timeSnap.Second * 1000) +
7 | timeSnap.Milliseconds)
8 | end
9 |
10 | function round(num, numDecimalPlaces)
11 | local mult = 10^(numDecimalPlaces or 0)
12 | return math.floor(num * mult + 0.5) / mult
13 | end
14 |
15 | function getAverage(t)
16 | local sum = 0
17 | local count = 0
18 |
19 | for k,v in pairs(t) do
20 | if type(v) == 'number' then
21 | sum = sum + v
22 | count = count + 1
23 | end
24 | end
25 |
26 | return (sum / count)
27 | end
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/icon/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/icon/icon.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/icon/icon.xui:
--------------------------------------------------------------------------------
1 |
2 |
3 | 64.000000
4 | 64.000000
5 |
6 |
7 |
8 | IconScene
9 | 64.000000
10 | 64.000000
11 | true
12 |
13 |
14 |
15 | AnimationStrip
16 | 384.000000
17 | 64.000000
18 | 1
19 | icon.png
20 |
21 |
22 |
23 |
24 | AnimationStrip
25 | Position
26 |
27 |
28 | 1
29 | 0.000000,0.000000,0.000000
30 |
31 |
32 |
33 | 1
34 | -64.000000,0.000000,0.000000
35 |
36 |
37 |
38 | 1
39 | -128.000000,0.000000,0.000000
40 |
41 |
42 |
43 | 1
44 | -192.000000,0.000000,0.000000
45 |
46 |
47 |
48 | 1
49 | -256.000000,0.000000,0.000000
50 |
51 |
52 |
53 | 1
54 | -320.000000,0.000000,0.000000
55 |
56 |
57 |
58 | 0
59 | -320.000000,0.000000,0.000000
60 |
61 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/icon/icon.xur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/icon/icon.xur
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiCheckbox/Checkbox.Box.Disabled.Blur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiCheckbox/Checkbox.Box.Disabled.Blur.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiCheckbox/Checkbox.Box.Disabled.Focus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiCheckbox/Checkbox.Box.Disabled.Focus.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiCheckbox/Checkbox.Box.Enabled.Blur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiCheckbox/Checkbox.Box.Enabled.Blur.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiCheckbox/Checkbox.Box.Enabled.Focus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiCheckbox/Checkbox.Box.Enabled.Focus.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiCheckbox/Checkbox.Check.Disabled.Blur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiCheckbox/Checkbox.Check.Disabled.Blur.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiCheckbox/Checkbox.Check.Disabled.Focus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiCheckbox/Checkbox.Check.Disabled.Focus.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiCheckbox/Checkbox.Check.Enabled.Blur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiCheckbox/Checkbox.Check.Enabled.Blur.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiCheckbox/Checkbox.Check.Enabled.Focus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiCheckbox/Checkbox.Check.Enabled.Focus.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiSlider/Slider.Bullet.Disabled.Blur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiSlider/Slider.Bullet.Disabled.Blur.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiSlider/Slider.Bullet.Disabled.Focus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiSlider/Slider.Bullet.Disabled.Focus.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiSlider/Slider.Bullet.Enabled.Blur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiSlider/Slider.Bullet.Enabled.Blur.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiSlider/Slider.Bullet.Enabled.Focus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiSlider/Slider.Bullet.Enabled.Focus.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiSlider/Slider.Line.Disabled.Blur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiSlider/Slider.Line.Disabled.Blur.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiSlider/Slider.Line.Disabled.Focus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiSlider/Slider.Line.Disabled.Focus.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiSlider/Slider.Line.Enabled.Blur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiSlider/Slider.Line.Enabled.Blur.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiSlider/Slider.Line.Enabled.Focus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/Images/Visuals/XuiSlider/Slider.Line.Enabled.Focus.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/images/downstreamArrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/images/downstreamArrow.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/images/upstreamArrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/images/upstreamArrow.png
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/options.xui:
--------------------------------------------------------------------------------
1 |
2 |
3 | 780.000000
4 | 352.000000
5 |
6 |
7 |
8 | GizmoScene
9 | 780.000000
10 | 352.000000
11 | [LayerFolders]0|-pingOptions|2|+|0|-additionalOptions|4|+|0|-downloadOptions|3|+|0|-uploadOptions|3|+|0[/LayerFolders]
12 | ScnLuaGizmo
13 |
14 |
15 |
16 | uploadCountSlider
17 | 127.040009
18 | 47.000000
19 | 575.400024,87.400002,0.000000
20 | uploadCountSlider
21 | uploadCountSlider
22 | uploadTestEnabledCheck
23 | pingTestEnabledCheck
24 | 1
25 | 5
26 | 1
27 |
28 |
29 |
30 |
31 | uploadTestEnabledCheck
32 | 175.000000
33 | 36.000000
34 | 567.680054,46.000000,0.000000
35 | downloadTestEnabledCheck
36 | downloadTestEnabledCheck
37 | pingTestEnabledCheck
38 | uploadCountSlider
39 | enabled
40 |
41 |
42 |
43 |
44 | uploadTestLable
45 | 191.000000
46 | 36.000000
47 | 538.400024,8.000000,0.000000
48 | XuiLabel_Regular_20pt_Left
49 | Upload
50 |
51 |
52 |
53 |
54 |
55 | downloadCountSlider
56 | 127.040009
57 | 47.000000
58 | 45.000000,87.400002,0.000000
59 | downloadCountSlider
60 | downloadCountSlider
61 | downloadTestEnabledCheck
62 | localIpTestEnabledCheck
63 | 1
64 | 5
65 | 1
66 |
67 |
68 |
69 |
70 | downloadTestEnabledCheck
71 | 175.000000
72 | 36.000000
73 | 37.279999,46.000000,0.000000
74 | uploadTestEnabledCheck
75 | uploadTestEnabledCheck
76 | serverIpTestEnabledCheck
77 | downloadCountSlider
78 | enabled
79 |
80 |
81 |
82 |
83 | downloadTestLable
84 | 191.000000
85 | 36.000000
86 | 8.000000,8.000000,0.000000
87 | XuiLabel_Regular_20pt_Left
88 | Download
89 |
90 |
91 |
92 |
93 |
94 | serverIpTestEnabledCheck
95 | 175.000000
96 | 36.000000
97 | 37.279999,313.000000,0.000000
98 | pingTestEnabledCheck
99 | pingTestEnabledCheck
100 | remoteIpTestEnabledCheck
101 | downloadTestEnabledCheck
102 | Server IP
103 |
104 |
105 |
106 |
107 | remoteIpTestEnabledCheck
108 | 175.000000
109 | 36.000000
110 | 37.279999,273.000000,0.000000
111 | pingTestEnabledCheck
112 | pingTestEnabledCheck
113 | localIpTestEnabledCheck
114 | serverIpTestEnabledCheck
115 | Remote IP
116 |
117 |
118 |
119 |
120 | localIpTestEnabledCheck
121 | 175.000000
122 | 36.000000
123 | 37.279999,233.000000,0.000000
124 | pingTestEnabledCheck
125 | pingTestEnabledCheck
126 | downloadCountSlider
127 | remoteIpTestEnabledCheck
128 | Local IP
129 |
130 |
131 |
132 |
133 | additionalInfoTestLable
134 | 191.000000
135 | 36.000000
136 | 8.000000,195.000000,0.000000
137 | XuiLabel_Regular_20pt_Left
138 | Additional Info
139 |
140 |
141 |
142 |
143 |
144 | pingTestEnabledCheck
145 | 175.000000
146 | 36.000000
147 | 567.680054,233.000000,0.000000
148 | localIpTestEnabledCheck
149 | localIpTestEnabledCheck
150 | uploadCountSlider
151 | uploadTestEnabledCheck
152 | enabled
153 |
154 |
155 |
156 |
157 | pingTestLable
158 | 191.000000
159 | 36.000000
160 | 538.400024,195.000000,0.000000
161 | XuiLabel_Regular_20pt_Left
162 | Ping Info
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 | Normal
171 |
172 |
173 |
174 | EndNormal
175 |
176 | stop
177 |
178 |
179 |
180 |
181 |
182 |
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/options.xur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/options.xur
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/result.xui:
--------------------------------------------------------------------------------
1 |
2 |
3 | 780.000000
4 | 352.000000
5 |
6 |
7 |
8 | GizmoScene
9 | 780.000000
10 | 352.000000
11 | [LayerFolders]0|+additionalInfo|0|+|12|+downstream|0|+|4|+upstream|0|+|4[/LayerFolders]
12 | ScnLuaGizmo
13 |
14 |
15 |
16 | upstreamIcon
17 | 64.000000
18 | 61.000000
19 | 714.000000,50.000004,0.000000
20 | Images\upstreamArrow.png
21 |
22 |
23 |
24 |
25 | upstreamValueMByte
26 | 192.000000
27 | 36.000000
28 | 493.000000,90.000000,0.000000
29 | XuiLabel_Regular_18pt_Left
30 | ...
31 |
32 |
33 |
34 |
35 |
36 | upstreamValueMbit
37 | 192.000000
38 | 36.000000
39 | 493.000000,50.000000,0.000000
40 | XuiLabel_Regular_18pt_Left
41 | ...
42 |
43 |
44 |
45 |
46 |
47 | upstreamLable
48 | 176.000000
49 | 46.000000
50 | 493.000000,5.000000,0.000000
51 | XuiLabel_Regular_20pt_Left
52 | Upstream
53 |
54 |
55 |
56 |
57 | downstreamIcon
58 | 64.000000
59 | 61.000000
60 | 233.000015,50.000000,0.000000
61 | Images\downstreamArrow.png
62 |
63 |
64 |
65 |
66 | downstreamValueMByte
67 | 225.000000
68 | 36.000000
69 | 6.000000,92.000000,0.000000
70 | XuiLabel_Regular_18pt_Left
71 | ...
72 |
73 |
74 |
75 |
76 |
77 | downstreamValueMbit
78 | 225.000000
79 | 36.000000
80 | 6.000000,50.000000,0.000000
81 | XuiLabel_Regular_18pt_Left
82 | ...
83 |
84 |
85 |
86 |
87 |
88 | downstreamLable
89 | 176.000000
90 | 46.000000
91 | 6.000000,5.000000,0.000000
92 | XuiLabel_Regular_20pt_Left
93 | Downstream
94 |
95 |
96 |
97 |
98 | pingLable
99 | 89.999992
100 | 46.000000
101 | 493.000000,183.000000,0.000000
102 | XuiLabel_Regular_20pt_Left
103 | Ping :
104 |
105 |
106 |
107 |
108 | hopsLable
109 | 77.999992
110 | 46.000000
111 | 493.000000,228.000000,0.000000
112 | XuiLabel_Regular_20pt_Left
113 | Hops:
114 |
115 |
116 |
117 |
118 |
119 | jitterLable
120 | 68.999992
121 | 46.000000
122 | 493.000000,273.000000,0.000000
123 | XuiLabel_Regular_20pt_Left
124 | Jitter:
125 |
126 |
127 |
128 |
129 |
130 |
131 | pingValue
132 | 157.000000
133 | 46.000000
134 | 598.000000,183.000000,0.000000
135 | XuiLabel_Regular_18pt_Left
136 | ...
137 |
138 |
139 |
140 |
141 |
142 |
143 | hopsValue
144 | 157.000000
145 | 46.000000
146 | 598.000000,228.000000,0.000000
147 | XuiLabel_Regular_18pt_Left
148 | ...
149 |
150 |
151 |
152 |
153 |
154 |
155 | jitterValue
156 | 157.000000
157 | 46.000000
158 | 598.000000,273.000000,0.000000
159 | XuiLabel_Regular_18pt_Left
160 | ...
161 |
162 |
163 |
164 |
165 |
166 |
167 | localIpLable
168 | 142.000000
169 | 46.000000
170 | 6.000000,183.000000,0.000000
171 | XuiLabel_Regular_20pt_Left
172 | Local-IP :
173 |
174 |
175 |
176 |
177 | remoteIpLable
178 | 146.000000
179 | 46.000000
180 | 6.000000,228.000000,0.000000
181 | XuiLabel_Regular_20pt_Left
182 | Remote-IP:
183 |
184 |
185 |
186 |
187 | jitterLable1
188 | 138.000000
189 | 46.000000
190 | 6.000000,273.000000,0.000000
191 | XuiLabel_Regular_20pt_Left
192 | Server-IP :
193 |
194 |
195 |
196 |
197 |
198 |
199 | localIpValue
200 | 242.000000
201 | 46.000000
202 | 175.000000,183.000000,0.000000
203 | XuiLabel_Regular_18pt_Left
204 | ...
205 |
206 |
207 |
208 |
209 |
210 |
211 | remoteIpValue
212 | 242.000000
213 | 46.000000
214 | 175.000000,228.000000,0.000000
215 | XuiLabel_Regular_18pt_Left
216 | ...
217 |
218 |
219 |
220 |
221 |
222 |
223 | serverIpValue
224 | 242.000000
225 | 46.000000
226 | 175.000000,273.000000,0.000000
227 | XuiLabel_Regular_18pt_Left
228 | ...
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 | Normal
237 |
238 |
239 |
240 | EndNormal
241 |
242 | stop
243 |
244 |
245 |
246 |
247 |
248 |
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/result.xur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/result.xur
--------------------------------------------------------------------------------
/UtilityScripts/NetworkSpeedCheck/skin/skin.xur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/NetworkSpeedCheck/skin/skin.xur
--------------------------------------------------------------------------------
/UtilityScripts/SkinDownloader/AuroraUI.lua:
--------------------------------------------------------------------------------
1 | -- Enum used for setting type
2 | KeyboardFlag = enum {
3 | Default = 0,
4 | Full = 1,
5 | Email = 2,
6 | Gamertag = 4,
7 | Phone = 8,
8 | IPAddress = 16,
9 | Numeric = 32,
10 | Alphabet = 64,
11 | Password = 128,
12 | Subscription = 256,
13 | FocusDone = 268435456,
14 | Highlight = 536870912
15 | }
16 |
17 | PopupType = enum {
18 | Default = 0,
19 | Background = 1,
20 | Skin = 2,
21 | CoverLayout = 3,
22 | Language = 4 ,
23 | }
24 |
25 | PermissionFlag = enum {
26 | None = 0,
27 | FileManager = 256,
28 | View = 512,
29 | Settings = 1024,
30 | Details = 2048,
31 | QuickView = 4096,
32 | DeleteContent = 8192,
33 | RenameGame = 16384
34 | }
35 |
36 | GizmoCommand = enum {
37 | A = 1,
38 | X = 2,
39 | Y = 3,
40 | }
41 |
42 | XuiMessage = enum {
43 | Unknown = 0,
44 | Init = 1,
45 | Close = 2,
46 | Press = 3,
47 | Timer = 4,
48 | KeyDown = 5,
49 | KeyUp = 6,
50 | SelChanged = 7,
51 | Keyboard = 8,
52 | Passcode = 9,
53 | Msgbox = 10,
54 | Command = 11,
55 | };
56 |
57 | XuiObject = enum {
58 | Element = 0,
59 | Text = 1,
60 | Image = 2,
61 | Control = 3,
62 | Button = 4,
63 | RadioButton = 5,
64 | RadioGroup = 6,
65 | Label = 7,
66 | Edit = 8,
67 | List = 9,
68 | Scene = 10,
69 | TabScene = 11,
70 | ProgressBar = 12,
71 | Slider = 13,
72 | Checkbox = 14
73 | };
--------------------------------------------------------------------------------
/UtilityScripts/SkinDownloader/Instructions.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/SkinDownloader/Instructions.txt
--------------------------------------------------------------------------------
/UtilityScripts/SkinDownloader/MenuSystem.lua:
--------------------------------------------------------------------------------
1 | local TopLevelMenu = {}
2 | TopLevelMenu.SubMenu = {}
3 | local TitleText = "Menu";
4 | local EmptyText = "No Menu Available";
5 | local ExitOnCancel = false;
6 | local GoBackText = "Exit";
7 | local SortAlphaBetically = true;
8 |
9 | _ShowMenu = function(menuItem)
10 | local menu = {}
11 | if SortAlphaBetically then
12 | table.sort(menuItem, function(a, b) return type(a) == "table" and type(b) == "table" and a.Name < b.Name; end);
13 | end
14 | for k, v in ipairs(menuItem) do
15 | if type(v) == "table" then
16 | menu[k] = v.Name;
17 | else
18 | if GoBackText ~= nil and GoBackText ~= "" then
19 | menu[k] = GoBackText; -- Only show the "Go Back" option if we actually have it set to something
20 | end
21 | end
22 | end
23 | local ret = Script.ShowPopupList(TitleText, EmptyText, menu);
24 | if ret.Canceled == true or (ret.Selected.Key == 1 and ret.Selected.Value == GoBackText) then
25 | if ret.Canceled == true then
26 | if ExitOnCancel == true then
27 | return nil, menuItem, ret.Canceled, nil;
28 | end
29 | end
30 | if menuItem.Parent == nil or menuItem.Parent.Parent == nil then
31 | return nil, menuItem, ret.Canceled, nil;
32 | else
33 | menu = nil;
34 | ret = nil;
35 | return _ShowMenu(menuItem.Parent.Parent);
36 | end
37 | else
38 | ret = menuItem[ret.Selected.Key];
39 | if ret.SubMenu == nil then
40 | return ret.Data, menuItem, false, ret;
41 | else
42 | menu = nil;
43 | return _ShowMenu(ret.SubMenu);
44 | end
45 | end
46 | end
47 |
48 | Menu = {
49 | ShowMenu = function(menuItem)
50 | return _ShowMenu(menuItem); -- Call the actual function^
51 | end,
52 | ShowMainMenu = function()
53 | return _ShowMenu(TopLevelMenu.SubMenu); -- Show the main menu (TopLevelMenu.SubMenu)
54 | end,
55 | ResetMenu = function()
56 | TopLevelMenu.SubMenu = {} -- Reset the menu to be empty
57 | TitleText = "Menu"; -- Reset title to the default one
58 | EmptyText = "No Menu Available"; -- Reset empty text to the default one
59 | ExitOnCancel = false; -- Reset ExitOnCancel to it's default value
60 | GoBackText = "Go Back"; -- Reset GoBackText to it's default value
61 | end,
62 | MakeMenuItem = function(displayName, data)
63 | return {
64 | Name = displayName; -- Set the Name Property to be displayed in the menu
65 | Data = data; -- Set the data property, if any...
66 | }
67 | end,
68 | AddSubMenuItem = function(menuItem, subMenuItem)
69 | if menuItem.SubMenu == nil then -- Check if we have a SubMenu already or not
70 | menuItem.SubMenu = {} -- Add the SubMenu table
71 | menuItem.SubMenu[1] = GoBackText; -- Add a "Go Back" to the Sub Menu
72 | menuItem.SubMenu.Parent = menuItem; -- Set the parent of the SubMenu to the menu we're adding it to
73 | end
74 | subMenuItem.Parent = menuItem.SubMenu; -- Set the parent of the subMenuItem to the SubMenu table so we can go further up the chain
75 | table.insert(menuItem.SubMenu, subMenuItem); -- Insert the subMenuItem to the menu
76 | end,
77 | AddMainMenuItem = function(menuItem)
78 | if TopLevelMenu.SubMenu == nil then -- Check if we have a SubMenu already or not
79 | TopLevelMenu.SubMenu = {} -- Add the SubMenu table
80 | TopLevelMenu.SubMenu.Parent = TopLevelMenu; -- Set SubMenu parent to TopLevelMenu
81 | end
82 | menuItem.Parent = TopLevelMenu.SubMenu; -- Set the parent of the subMenuItem to the SubMenu table so we can go further up the chain
83 | table.insert(TopLevelMenu.SubMenu, menuItem); -- Insert the menuItem to the menu
84 | end,
85 | SetTitle = function(title)
86 | TitleText = title; -- Set the TitleText
87 | end,
88 | SetEmptyText = function(emptyText)
89 | EmptyText = emptyText; -- Set the text to be shown if the menu is empty
90 | end,
91 | SetExitOnCancel = function(exitOnCancel)
92 | ExitOnCancel = exitOnCancel == true; -- Set the flag that tells the menu system to exit upon being canceled (B being pressed)
93 | end,
94 | SetGoBackText = function(goBackText)
95 | GoBackText = goBackText; -- Set the text for the return/back menu item
96 | end,
97 | SetSortAlphaBetically = function(sortAlphaBetically)
98 | SortAlphaBetically = sortAlphaBetically == true; -- Set the flag that tells us if we should sort alphabetically
99 | end,
100 | IsMainMenu = function(menu)
101 | return menu == TopLevelMenu.SubMenu;
102 | end
103 | }
104 |
105 | return Menu;
--------------------------------------------------------------------------------
/UtilityScripts/SkinDownloader/gizmo.lua:
--------------------------------------------------------------------------------
1 | local Gizmo = {}; -- public namespace
2 | local GP = {}; -- private namespace
3 | local Xui = {};
4 | local tipos = {};
5 | local filetipo="";
6 | function Gizmo.run( scriptData, tipo )
7 | local hGizmo = GizmoUI.CreateInstance();
8 | if hGizmo ~= nil then
9 | hGizmo:RegisterCallback( XuiMessage.Init, GP.fnOnInit );
10 | hGizmo:RegisterCallback( XuiMessage.Command, GP.fnOnCommand );
11 | filetipo=tipo;
12 |
13 | return hGizmo:InvokeUI(Script.GetBasePath(), tipo:sub(1,-2):gsub("^%l", string.upper) .. " " .. scriptData.nombre, "scene.xur", "skin.xur", scriptData );
14 | end
15 | end
16 |
17 | function GP.fnOnInit( this, initData )
18 |
19 | -- Find our total controls
20 | Xui["Nombre"] = this:RegisterControl( XuiObject.Label, "Nombre" );
21 | Xui["Autor"] = this:RegisterControl( XuiObject.Label, "Autor" );
22 | Xui["Captura"] = this:RegisterControl( XuiObject.Image, "Captura" );
23 |
24 | Xui["lblNombre"] = this:RegisterControl( XuiObject.Label, "lblNombre" );
25 | Xui["lblAutor"] = this:RegisterControl( XuiObject.Label, "lblAutor" );
26 |
27 | -- Disable the A button
28 | this:SetCommandEnabled( GizmoCommand.A, true );
29 | this:SetCommandText( GizmoCommand.A, "Download" );
30 |
31 | this:SetCommandEnabled( GizmoCommand.X, true );
32 | this:SetCommandText( GizmoCommand.X, "More info" );
33 |
34 | -- Apply info
35 | if filetipo=="backgrounds" then
36 | Xui.Nombre:SetText( initData.nombre );
37 | Xui.Autor:SetText( "" );
38 | Xui.lblAutor:SetText( "" );
39 | else
40 | Xui.Nombre:SetText( (initData.nombre) .. " v" .. (initData.version) );
41 | Xui.Autor:SetText( (initData.autor) );
42 | Xui.lblAutor:SetText( "Author:" );
43 | end
44 | -- Apply screenshot
45 | Xui.Captura:SetImagePath( "screenshots\\" .. initData.id .. "_" .. initData.version .. ".jpg" );
46 | end
47 |
48 |
49 | function GP.fnOnCommand( this, commandType )
50 | if commandType == GizmoCommand.A then
51 | -- A button was pressed- so let's dismiss our UI and download
52 | this:Dismiss("download");
53 | end
54 | if commandType == GizmoCommand.X then
55 | this:Dismiss("moreinfo");
56 | end
57 | end
58 |
59 | -- Return our script functionality
60 | return Gizmo;
--------------------------------------------------------------------------------
/UtilityScripts/SkinDownloader/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/SkinDownloader/icon.png
--------------------------------------------------------------------------------
/UtilityScripts/SkinDownloader/scene.xur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/SkinDownloader/scene.xur
--------------------------------------------------------------------------------
/UtilityScripts/SkinDownloader/skin.xur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/SkinDownloader/skin.xur
--------------------------------------------------------------------------------
/UtilityScripts/TempViewer/Main.lua:
--------------------------------------------------------------------------------
1 | scriptTitle = "Temperature Viewer"
2 | scriptAuthor = "Phoenix"
3 | scriptVersion = 1
4 | scriptDescription = "This script displays the current console temperatures in both Celsius and Fahrenheit"
5 | -- Request all libraries to be loaded even if we don't use them here...
6 | --scriptPermissions = { "http", "content", "filesystem", "settings", "sql", "kernel" }
7 |
8 | local function toFahrenheit(c)
9 | return c * 9 / 5 + 32
10 | end
11 |
12 | -- The script entry point
13 | function main()
14 | local temps = Aurora.GetTemperatures();
15 | local msg = "CPU: " .. string.format("%.2f", temps["CPU"]) .. "°C / " .. string.format("%.2f", toFahrenheit(temps["CPU"])) .. "°F\n";
16 | msg = msg .. "GPU: " .. string.format("%.2f", temps["GPU"]) .. "°C / " .. string.format("%.2f", toFahrenheit(temps["GPU"])) .. "°F\n";
17 | msg = msg .. "RAM: " .. string.format("%.2f", temps["RAM"]) .. "°C / " .. string.format("%.2f", toFahrenheit(temps["RAM"])) .. "°F\n";
18 | msg = msg .. "CASE: " .. string.format("%.2f", temps["BRD"]) .. "°C / " .. string.format("%.2f", toFahrenheit(temps["BRD"])) .. "°F\n";
19 | Script.ShowMessageBox("Current Temperatures", msg, "OK");
20 | end
21 |
--------------------------------------------------------------------------------
/UtilityScripts/TempViewer/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TempViewer/icon.png
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/AuroraUI.lua:
--------------------------------------------------------------------------------
1 | -- Enum used for setting type
2 | KeyboardFlag = enum {
3 | Default = 0,
4 | Full = 1,
5 | Email = 2,
6 | Gamertag = 4,
7 | Phone = 8,
8 | IPAddress = 16,
9 | Numeric = 32,
10 | Alphabet = 64,
11 | Password = 128,
12 | Subscription = 256,
13 | FocusDone = 268435456,
14 | Highlight = 536870912
15 | }
16 |
17 | PopupType = enum {
18 | Default = 0,
19 | Background = 1,
20 | Skin = 2,
21 | CoverLayout = 3,
22 | Language = 4 ,
23 | }
24 |
25 | PermissionFlag = enum {
26 | None = 0,
27 | FileManager = 256,
28 | View = 512,
29 | Settings = 1024,
30 | Details = 2048,
31 | QuickView = 4096,
32 | DeleteContent = 8192,
33 | RenameGame = 16384
34 | }
35 |
36 | GizmoCommand = enum {
37 | A = 1,
38 | X = 2,
39 | Y = 3,
40 | }
41 |
42 | XuiMessage = enum {
43 | Unknown = 0,
44 | Init = 1,
45 | Close = 2,
46 | Press = 3,
47 | Timer = 4,
48 | KeyDown = 5,
49 | KeyUp = 6,
50 | SelChanged = 7,
51 | Keyboard = 8,
52 | Passcode = 9,
53 | Msgbox = 10,
54 | Command = 11,
55 | };
56 |
57 | XuiObject = enum {
58 | Element = 0,
59 | Text = 1,
60 | Image = 2,
61 | Control = 3,
62 | Button = 4,
63 | RadioButton = 5,
64 | RadioGroup = 6,
65 | Label = 7,
66 | Edit = 8,
67 | List = 9,
68 | Scene = 10,
69 | TabScene = 11,
70 | ProgressBar = 12,
71 | Slider = 13,
72 | Checkbox = 14
73 | };
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/Main.lua:
--------------------------------------------------------------------------------
1 | scriptTitle = "Temperature Manager"
2 | scriptAuthor = "saywaking"
3 | scriptVersion = 1
4 | scriptDescription = "This script displays and manages your fan speed and target temperatures."
5 | scriptPermissions = { "kernel" }
6 | scriptIcon = "skin\\icon.png";
7 |
8 | require("AuroraUI");
9 | gizmo = require("Gizmo");
10 |
11 | currentTemperatureSettings = {};
12 |
13 | local disclaimerMessage = "Warning \n\n" ..
14 | "You are fully responsible for the changes on your temperature/fan settings.\n" ..
15 | "Bad Settings may lead your console to 'death'.\n";
16 |
17 | function main()
18 | Script.SetStatus("Displaying Disclaimer");
19 | Script.SetProgress(15);
20 |
21 | local selection = Script.ShowMessageBox("Disclaimer", disclaimerMessage, "Accept", "Close");
22 | if selection.Button == 1 then
23 | Script.SetStatus("Retrieving current Temperature Settings");
24 | Script.SetProgress(50);
25 | currentTemperatureSettings = getCurrentTemperatureSettings();
26 |
27 | Script.SetStatus("Displaying Temperature Manager");
28 | Script.SetProgress(99);
29 | gizmo.run();
30 | end
31 |
32 | Script.SetStatus("Ended");
33 | Script.SetProgress(100);
34 | end
35 |
36 |
37 | function getCurrentTemperatureSettings()
38 | -- TODO: iniFile
39 |
40 | return
41 | {
42 | ["currentCPUThreshold"] = Kernel.GetCPUTempThreshold(),
43 | ["currentGPUThreshold"] = Kernel.GetGPUTempThreshold(),
44 | ["currentRAMThreshold"] = Kernel.GetEDRAMTempThreshold(),
45 | ["currentFanSpeed"] = 30 -- default
46 | };
47 | end
48 |
49 |
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/gizmo.lua:
--------------------------------------------------------------------------------
1 | local Gizmo = {}; -- public namespace
2 | local GP = {}; -- private namespace
3 | local Xui = {};
4 |
5 | function Gizmo.run( scriptData )
6 | local hGizmo = GizmoUI.CreateInstance();
7 | if hGizmo ~= nil then
8 | hGizmo:RegisterCallback( XuiMessage.Init, GP.fnOnInit );
9 | hGizmo:RegisterCallback( XuiMessage.Command, GP.fnOnCommand );
10 | hGizmo:RegisterCallback( XuiMessage.Timer, GP.fnOnTimer );
11 |
12 | return hGizmo:InvokeUI(Script.GetBasePath(), "Temperature Manager", "skin\\scene.xur", "skin\\skin.xur", scriptData );
13 | end
14 | end
15 |
16 | function GP.fnOnInit( this, initData )
17 | Xui["cpuValue"] = this:RegisterControl( XuiObject.Label, "cpuValueLabel" );
18 | Xui["gpuValue"] = this:RegisterControl( XuiObject.Label, "gpuValueLabel" );
19 | Xui["ramValue"] = this:RegisterControl( XuiObject.Label, "ramValueLabel" );
20 | Xui["caseValue"] = this:RegisterControl( XuiObject.Label, "caseValueLabel" );
21 | Xui["fanValue"] = this:RegisterControl( XuiObject.Label, "fanValueLabel" );
22 | Xui["cpuSliderValue"] = this:RegisterControl( XuiObject.Slider, "cpuValueSlider" );
23 | Xui["gpuSliderValue"] = this:RegisterControl( XuiObject.Slider, "gpuValueSlider" );
24 | Xui["ramSliderValue"] = this:RegisterControl( XuiObject.Slider, "ramValueSlider" );
25 | Xui["fanSliderValue"] = this:RegisterControl( XuiObject.Slider, "fanValueSlider" );
26 |
27 | Xui.cpuSliderValue:SetValue(currentTemperatureSettings["currentCPUThreshold"]);
28 | Xui.gpuSliderValue:SetValue(currentTemperatureSettings["currentGPUThreshold"]);
29 | Xui.ramSliderValue:SetValue(currentTemperatureSettings["currentRAMThreshold"]);
30 | Xui.fanSliderValue:SetValue(currentTemperatureSettings["currentFanSpeed"]);
31 |
32 | this:SetCommandEnabled( GizmoCommand.A, true );
33 | this:SetCommandText( GizmoCommand.A, "Target Temps" );
34 | this:SetCommandEnabled( GizmoCommand.Y, true );
35 | this:SetCommandText( GizmoCommand.Y, "Fan Speed" );
36 |
37 | this:SetTimer(1, 1000);
38 | end
39 |
40 | function GP.fnOnCommand( this, commandType )
41 | local newCPUThreshold = Xui.cpuSliderValue:GetValue();
42 | local newGPUThreshold = Xui.gpuSliderValue:GetValue();
43 | local newRAMThreshold = Xui.ramSliderValue:GetValue();
44 | local newFanSpeed = Xui.fanSliderValue:GetValue();
45 |
46 | if commandType == GizmoCommand.A then
47 | if newCPUThreshold ~= currentTemperatureSettings["currentCPUThreshold"] or
48 | newGPUThreshold ~= currentTemperatureSettings["currentGPUThreshold"] or
49 | newRAMThreshold ~= currentTemperatureSettings["currentRAMThreshold"]
50 | then
51 | currentTemperatureSettings["currentCPUThreshold"] = newCPUThreshold;
52 | currentTemperatureSettings["currentGPUThreshold"] = newGPUThreshold;
53 | currentTemperatureSettings["currentRAMThreshold"] = newRAMThreshold;
54 |
55 | Kernel.SetCPUTempThreshold(newCPUThreshold);
56 | Kernel.SetGPUTempThreshold(newGPUThreshold);
57 | Kernel.SetEDRAMTempThreshold(newRAMThreshold);
58 | Script.ShowNotification("Changes applied. Reboot Required");
59 | else
60 | Script.ShowNotification("No Changes found");
61 | end
62 | end
63 |
64 | if commandType == GizmoCommand.Y then
65 |
66 | if newFanSpeed ~= currentTemperatureSettings["currentFanSpeed"]
67 | then
68 | currentTemperatureSettings["currentFanSpeed"] = newFanSpeed;
69 |
70 | Kernel.SetFanSpeed(newFanSpeed);
71 |
72 | Xui.fanValue:SetText(newFanSpeed .. " %");
73 | Script.ShowNotification("Changes applied");
74 | else
75 | Script.ShowNotification("No Changes found");
76 | end
77 | end
78 | end
79 |
80 | function GP.fnOnTimer( this, timerId )
81 | Xui.cpuValue:SetText( (string.format("%.2f", Aurora.GetTemperatures().CPU) .."°C") );
82 | Xui.gpuValue:SetText( (string.format("%.2f", Aurora.GetTemperatures().GPU) .."°C") );
83 | Xui.ramValue:SetText( (string.format("%.2f", Aurora.GetTemperatures().RAM) .."°C") );
84 | Xui.caseValue:SetText( (string.format("%.2f", Aurora.GetTemperatures().BRD) .."°C") );
85 | end
86 |
87 | return Gizmo;
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiCheckbox/Checkbox.Box.Disabled.Blur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiCheckbox/Checkbox.Box.Disabled.Blur.png
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiCheckbox/Checkbox.Box.Disabled.Focus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiCheckbox/Checkbox.Box.Disabled.Focus.png
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiCheckbox/Checkbox.Box.Enabled.Blur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiCheckbox/Checkbox.Box.Enabled.Blur.png
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiCheckbox/Checkbox.Box.Enabled.Focus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiCheckbox/Checkbox.Box.Enabled.Focus.png
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiCheckbox/Checkbox.Check.Disabled.Blur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiCheckbox/Checkbox.Check.Disabled.Blur.png
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiCheckbox/Checkbox.Check.Disabled.Focus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiCheckbox/Checkbox.Check.Disabled.Focus.png
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiCheckbox/Checkbox.Check.Enabled.Blur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiCheckbox/Checkbox.Check.Enabled.Blur.png
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiCheckbox/Checkbox.Check.Enabled.Focus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiCheckbox/Checkbox.Check.Enabled.Focus.png
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiSlider/Slider.Bullet.Disabled.Blur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiSlider/Slider.Bullet.Disabled.Blur.png
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiSlider/Slider.Bullet.Disabled.Focus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiSlider/Slider.Bullet.Disabled.Focus.png
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiSlider/Slider.Bullet.Enabled.Blur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiSlider/Slider.Bullet.Enabled.Blur.png
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiSlider/Slider.Bullet.Enabled.Focus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiSlider/Slider.Bullet.Enabled.Focus.png
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiSlider/Slider.Line.Disabled.Blur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiSlider/Slider.Line.Disabled.Blur.png
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiSlider/Slider.Line.Disabled.Focus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiSlider/Slider.Line.Disabled.Focus.png
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiSlider/Slider.Line.Enabled.Blur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiSlider/Slider.Line.Enabled.Blur.png
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiSlider/Slider.Line.Enabled.Focus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/Images/Visuals/XuiSlider/Slider.Line.Enabled.Focus.png
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/icon.png
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/scene.xui:
--------------------------------------------------------------------------------
1 |
2 |
3 | 780.000000
4 | 352.000000
5 |
6 |
7 |
8 | GizmoScene
9 | 780.000000
10 | 352.000000
11 | ScnLuaGizmo
12 |
13 |
14 |
15 | cpuLabel
16 | 72.399994
17 | 21.599998
18 | 1.000000,90.000000,0.000000
19 | XuiLabel_Regular_20pt_Left
20 | CPU:
21 |
22 |
23 |
24 |
25 | gpuLabel
26 | 72.399994
27 | 21.599998
28 | 1.000000,124.000000,0.000000
29 | 64
30 | 1
31 | XuiLabel_Regular_20pt_Left
32 | GPU:
33 |
34 |
35 |
36 |
37 | ramLabel
38 | 76.000000
39 | 19.199997
40 | 1.000000,157.399994,0.000000
41 | 64
42 | 1
43 | XuiLabel_Regular_20pt_Left
44 | RAM:
45 |
46 |
47 |
48 |
49 | caseLabel
50 | 86.800003
51 | 21.599998
52 | 1.000000,190.000000,0.000000
53 | 64
54 | 1
55 | XuiLabel_Regular_20pt_Left
56 | CASE:
57 |
58 |
59 |
60 |
61 | cpuValueLabel
62 | 120.399979
63 | 21.599998
64 | 111.000000,90.000000,0.000000
65 | XuiLabel_Regular_18pt_Right
66 | °C
67 |
68 |
69 |
70 |
71 |
72 | gpuValueLabel
73 | 120.399979
74 | 21.599998
75 | 111.000000,123.000000,0.000000
76 | XuiLabel_Regular_18pt_Right
77 | °C
78 |
79 |
80 |
81 |
82 |
83 | ramValueLabel
84 | 120.399979
85 | 21.599998
86 | 111.000000,157.000000,0.000000
87 | XuiLabel_Regular_18pt_Right
88 | °C
89 |
90 |
91 |
92 |
93 |
94 | caseValueLabel
95 | 120.399979
96 | 21.599998
97 | 111.000000,190.000000,0.000000
98 | XuiLabel_Regular_18pt_Right
99 | °C
100 |
101 |
102 |
103 |
104 |
105 | fanLabel
106 | 73.599991
107 | 21.599998
108 | 1.000000,280.000000,0.000000
109 | 64
110 | 1
111 | XuiLabel_Regular_20pt_Left
112 | FAN:
113 |
114 |
115 |
116 |
117 | fanValueLabel
118 | 120.399979
119 | 21.599998
120 | 111.000000,280.000000,0.000000
121 | XuiLabel_Regular_18pt_Right
122 | %
123 |
124 |
125 |
126 |
127 | fanValueSlider
128 | 450.000000
129 | 34.000000
130 | 285.000000,274.000000,0.000000
131 | XuiSlider
132 | ramValueSlider
133 | cpuValueSlider
134 | 30
135 | 50
136 |
137 |
138 |
139 |
140 | cpuValueSlider
141 | 450.000000
142 | 34.000000
143 | 285.000000,82.000000,0.000000
144 | XuiSlider
145 | fanValueSlider
146 | gpuValueSlider
147 | 40
148 | 80
149 | 70
150 |
151 |
152 |
153 |
154 | gpuValueSlider
155 | 450.000000
156 | 34.000000
157 | 285.000000,116.000000,0.000000
158 | XuiSlider
159 | cpuValueSlider
160 | ramValueSlider
161 | 40
162 | 80
163 | 70
164 |
165 |
166 |
167 |
168 | ramValueSlider
169 | 450.000000
170 | 34.000000
171 | 285.000000,149.000000,0.000000
172 | XuiSlider
173 | gpuValueSlider
174 | fanValueSlider
175 | 40
176 | 80
177 | 70
178 |
179 |
180 |
181 |
182 | currentLabel
183 | 227.199966
184 | 21.599998
185 | 1.000000,1.000000,0.000000
186 | XuiLabel_Regular_20pt_Left
187 | Current
188 |
189 |
190 |
191 |
192 | targetLabel
193 | 227.199966
194 | 21.599998
195 | 285.000000,1.000000,0.000000
196 | XuiLabel_Regular_20pt_Left
197 | Target
198 |
199 |
200 |
201 |
202 |
203 | permanentLabel
204 | 443.919922
205 | 21.599998
206 | 285.000000,65.000000,0.000000
207 | 64
208 | XuiLabel_Italic_13pt_Left
209 | (permanent)
210 |
211 |
212 |
213 |
214 | temporaryLabel
215 | 442.719910
216 | 21.599998
217 | 285.000000,259.000000,0.000000
218 | XuiLabel_Italic_13pt_Left
219 | (temporary)
220 |
221 |
222 |
223 |
224 |
225 | Normal
226 |
227 |
228 |
229 | EndNormal
230 |
231 | stop
232 |
233 |
234 |
235 |
236 |
237 |
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/scene.xur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/scene.xur
--------------------------------------------------------------------------------
/UtilityScripts/TemperatureManager/skin/skin.xur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TemperatureManager/skin/skin.xur
--------------------------------------------------------------------------------
/UtilityScripts/TextViewer/AuroraUI.lua:
--------------------------------------------------------------------------------
1 | -- Enum used for setting type
2 | KeyboardFlag = enum {
3 | Default = 0,
4 | Full = 1,
5 | Email = 2,
6 | Gamertag = 4,
7 | Phone = 8,
8 | IPAddress = 16,
9 | Numeric = 32,
10 | Alphabet = 64,
11 | Password = 128,
12 | Subscription = 256,
13 | FocusDone = 268435456,
14 | Highlight = 536870912
15 | }
16 |
17 | PopupType = enum {
18 | Default = 0,
19 | Background = 1,
20 | Skin = 2,
21 | CoverLayout = 3,
22 | Language = 4 ,
23 | }
24 |
25 | PermissionFlag = enum {
26 | None = 0,
27 | FileManager = 256,
28 | View = 512,
29 | Settings = 1024,
30 | Details = 2048,
31 | QuickView = 4096,
32 | DeleteContent = 8192,
33 | RenameGame = 16384
34 | }
35 |
36 | GizmoCommand = enum {
37 | A = 1,
38 | X = 2,
39 | Y = 3,
40 | }
41 |
42 | XuiMessage = enum {
43 | Unknown = 0,
44 | Init = 1,
45 | Close = 2,
46 | Press = 3,
47 | Timer = 4,
48 | KeyDown = 5,
49 | KeyUp = 6,
50 | SelChanged = 7,
51 | Keyboard = 8,
52 | Passcode = 9,
53 | Msgbox = 10,
54 | Command = 11,
55 | };
56 |
57 | XuiObject = enum {
58 | Element = 0,
59 | Text = 1,
60 | Image = 2,
61 | Control = 3,
62 | Button = 4,
63 | RadioButton = 5,
64 | RadioGroup = 6,
65 | Label = 7,
66 | Edit = 8,
67 | List = 9,
68 | Scene = 10,
69 | TabScene = 11,
70 | ProgressBar = 12,
71 | Slider = 13,
72 | Checkbox = 14
73 | };
--------------------------------------------------------------------------------
/UtilityScripts/TextViewer/MenuSystem.lua:
--------------------------------------------------------------------------------
1 | local TopLevelMenu = {}
2 | TopLevelMenu.SubMenu = {}
3 | local TitleText = "Menu";
4 | local EmptyText = "No Menu Available";
5 | local ExitOnCancel = false;
6 | local GoBackText = "Go Back";
7 | local SortAlphaBetically = true;
8 |
9 | _ShowMenu = function(menuItem)
10 | local menu = {}
11 | if SortAlphaBetically then
12 | table.sort(menuItem, function(a, b) return type(a) == "table" and type(b) == "table" and a.Name < b.Name; end);
13 | end
14 | for k, v in ipairs(menuItem) do
15 | if type(v) == "table" then
16 | menu[k] = v.Name;
17 | else
18 | if GoBackText ~= nil and GoBackText ~= "" then
19 | menu[k] = GoBackText; -- Only show the "Go Back" option if we actually have it set to something
20 | end
21 | end
22 | end
23 | local ret = Script.ShowPopupList(TitleText, EmptyText, menu);
24 | if ret.Canceled == true or (ret.Selected.Key == 1 and ret.Selected.Value == GoBackText) then
25 | if ExitOnCancel == true then
26 | return nil, menuItem, ret.Canceled, nil;
27 | end
28 | if menuItem.Parent == nil or menuItem.Parent.Parent == nil then
29 | return nil, menuItem, ret.Canceled, nil;
30 | else
31 | menu = nil;
32 | ret = nil;
33 | return _ShowMenu(menuItem.Parent.Parent);
34 | end
35 | else
36 | ret = menuItem[ret.Selected.Key];
37 | if ret.SubMenu == nil then
38 | return ret.Data, menuItem, false, ret;
39 | else
40 | menu = nil;
41 | return _ShowMenu(ret.SubMenu);
42 | end
43 | end
44 | end
45 |
46 | Menu = {
47 | ShowMenu = function(menuItem)
48 | return _ShowMenu(menuItem); -- Call the actual function^
49 | end,
50 | ShowMainMenu = function()
51 | return _ShowMenu(TopLevelMenu.SubMenu); -- Show the main menu (TopLevelMenu.SubMenu)
52 | end,
53 | ResetMenu = function()
54 | TopLevelMenu.SubMenu = {} -- Reset the menu to be empty
55 | TitleText = "Menu"; -- Reset title to the default one
56 | EmptyText = "No Menu Available"; -- Reset empty text to the default one
57 | ExitOnCancel = false; -- Reset ExitOnCancel to it's default value
58 | GoBackText = "Go Back"; -- Reset GoBackText to it's default value
59 | end,
60 | MakeMenuItem = function(displayName, data)
61 | return {
62 | Name = displayName; -- Set the Name Property to be displayed in the menu
63 | Data = data; -- Set the data property, if any...
64 | }
65 | end,
66 | AddSubMenuItem = function(menuItem, subMenuItem)
67 | if menuItem.SubMenu == nil then -- Check if we have a SubMenu already or not
68 | menuItem.SubMenu = {} -- Add the SubMenu table
69 | menuItem.SubMenu[1] = GoBackText; -- Add a "Go Back" to the Sub Menu
70 | menuItem.SubMenu.Parent = menuItem; -- Set the parent of the SubMenu to the menu we're adding it to
71 | end
72 | subMenuItem.Parent = menuItem.SubMenu; -- Set the parent of the subMenuItem to the SubMenu table so we can go further up the chain
73 | table.insert(menuItem.SubMenu, subMenuItem); -- Insert the subMenuItem to the menu
74 | end,
75 | AddMainMenuItem = function(menuItem)
76 | if TopLevelMenu.SubMenu == nil then -- Check if we have a SubMenu already or not
77 | TopLevelMenu.SubMenu = {} -- Add the SubMenu table
78 | TopLevelMenu.SubMenu.Parent = TopLevelMenu; -- Set SubMenu parent to TopLevelMenu
79 | end
80 | menuItem.Parent = TopLevelMenu.SubMenu; -- Set the parent of the subMenuItem to the SubMenu table so we can go further up the chain
81 | table.insert(TopLevelMenu.SubMenu, menuItem); -- Insert the menuItem to the menu
82 | end,
83 | SetTitle = function(title)
84 | TitleText = title; -- Set the TitleText
85 | end,
86 | SetEmptyText = function(emptyText)
87 | EmptyText = emptyText; -- Set the text to be shown if the menu is empty
88 | end,
89 | SetExitOnCancel = function(exitOnCancel)
90 | ExitOnCancel = exitOnCancel == true; -- Set the flag that tells the menu system to exit upon being canceled (B being pressed)
91 | end,
92 | SetGoBackText = function(goBackText)
93 | GoBackText = goBackText; -- Set the text for the return/back menu item
94 | end,
95 | SetSortAlphaBetically = function(sortAlphaBetically)
96 | SortAlphaBetically = sortAlphaBetically == true; -- Set the flag that tells us if we should sort alphabetically
97 | end,
98 | IsMainMenu = function(menu)
99 | return menu == TopLevelMenu.SubMenu;
100 | end
101 | }
102 |
103 | return Menu;
--------------------------------------------------------------------------------
/UtilityScripts/TextViewer/gizmo.lua:
--------------------------------------------------------------------------------
1 | local Gizmo = {}; -- public namespace
2 | local GP = {}; -- private namespace
3 | local Xui = {};
4 |
5 | function Gizmo.run( scriptData )
6 | local hGizmo = GizmoUI.CreateInstance();
7 | if hGizmo ~= nil then
8 | hGizmo:RegisterCallback( XuiMessage.Init, GP.fnOnInit );
9 | hGizmo:RegisterCallback( XuiMessage.Command, GP.fnOnCommand );
10 |
11 | return hGizmo:InvokeUI(Script.GetBasePath(), "Text Viewer | " .. scriptData.path, "skin\\scene.xur", "skin\\skin.xur", scriptData );
12 | end
13 | end
14 |
15 | function GP.fnOnInit( this, initData )
16 | Xui["textArea"] = this:RegisterControl( XuiObject.Edit, "textArea" );
17 |
18 | Xui.textArea:SetText( initData.text );
19 |
20 | this:SetCommandEnabled( GizmoCommand.A, false );
21 | end
22 |
23 | function GP.fnOnCommand( this, commandType )
24 | -- do Nothing
25 | end
26 |
27 | return Gizmo;
--------------------------------------------------------------------------------
/UtilityScripts/TextViewer/icon/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TextViewer/icon/icon.png
--------------------------------------------------------------------------------
/UtilityScripts/TextViewer/skin/scene.xui:
--------------------------------------------------------------------------------
1 |
2 |
3 | 780.000000
4 | 352.000000
5 |
6 |
7 |
8 | GizmoScene
9 | 780.000000
10 | 352.000000
11 | ScnLuaGizmo
12 |
13 |
14 |
15 | textArea
16 | 780.000000
17 | 352.000000
18 | XuiLabel_Regular_18pt_Left
19 | text
20 | 1000000
21 | true
22 | true
23 | true
24 |
25 |
26 |
27 |
28 |
29 | Normal
30 |
31 |
32 |
33 | EndNormal
34 |
35 | stop
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/UtilityScripts/TextViewer/skin/scene.xur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TextViewer/skin/scene.xur
--------------------------------------------------------------------------------
/UtilityScripts/TextViewer/skin/skin.xui:
--------------------------------------------------------------------------------
1 |
2 |
3 | 640.000000
4 | 480.000000
5 |
6 |
7 |
8 | XuiLabel_Regular_18pt_Left
9 | 640.000000
10 | 480.000000
11 | 5
12 |
13 |
14 |
15 | txtMain
16 | 1280.000000
17 | 64.000000
18 | -1.000000,-8.000000,0.000000
19 | 0.500000,0.500000,1.000000
20 | 5
21 | 0xff444444
22 | 0x800f0f0f
23 | 36.000000
24 | 16656
25 |
26 |
27 |
28 |
29 |
30 | Normal
31 |
32 |
33 |
34 | EndNormal
35 |
36 | stop
37 |
38 |
39 | NormalDisable
40 |
41 |
42 |
43 | EndNormalDisable
44 |
45 | stop
46 |
47 |
48 |
49 |
50 |
51 |
52 | XuiLabel_Regular_18pt_Right
53 | 640.000000
54 | 480.000000
55 | 5
56 |
57 |
58 |
59 | txtMain
60 | 1280.000000
61 | 64.000000
62 | -1.000000,-8.000000,0.000000
63 | 0.500000,0.500000,1.000000
64 | 5
65 | 0xff444444
66 | 0x800f0f0f
67 | 36.000000
68 | 16912
69 |
70 |
71 |
72 |
73 |
74 | Normal
75 |
76 |
77 |
78 | EndNormal
79 |
80 | stop
81 |
82 |
83 | NormalDisable
84 |
85 |
86 |
87 | EndNormalDisable
88 |
89 | stop
90 |
91 |
92 |
93 |
94 |
95 |
96 | XuiLabel_Regular_20pt_Left
97 | 250.000000
98 | 42.000000
99 | 5
100 |
101 |
102 |
103 | txtMain
104 | 500.000000
105 | 102.000000
106 | -1.000000,-9.500000,0.000000
107 | 0.500000,0.500000,1.000000
108 | 5
109 | 0xff444444
110 | 0x800f0f0f
111 | 40.000000
112 | 16656
113 |
114 |
115 |
116 |
117 |
118 | Normal
119 |
120 |
121 |
122 | EndNormal
123 |
124 | stop
125 |
126 |
127 | NormalDisable
128 |
129 |
130 |
131 | EndNormalDisable
132 |
133 | stop
134 |
135 |
136 |
137 | txtMain
138 | TextColor
139 |
140 |
141 | 0
142 | 0xff444444
143 |
144 |
145 |
146 | 0
147 | 0xff444444
148 |
149 |
150 |
151 | 0
152 | 0xffaaaaaa
153 |
154 |
155 |
156 | 0
157 | 0xffaaaaaa
158 |
159 |
160 |
161 |
162 |
163 |
164 | XuiLabel_Regular_20pt_Right
165 | 250.000000
166 | 42.000000
167 | 5
168 |
169 |
170 |
171 | txtMain
172 | 500.000000
173 | 102.000000
174 | -1.000000,-9.500000,0.000000
175 | 0.500000,0.500000,1.000000
176 | 5
177 | 0xff444444
178 | 0x800f0f0f
179 | 40.000000
180 | 16912
181 |
182 |
183 |
184 |
185 |
186 | Normal
187 |
188 |
189 |
190 | EndNormal
191 |
192 | stop
193 |
194 |
195 | NormalDisable
196 |
197 |
198 |
199 | EndNormalDisable
200 |
201 | stop
202 |
203 |
204 |
205 | txtMain
206 | TextColor
207 |
208 |
209 | 0
210 | 0xff444444
211 |
212 |
213 |
214 | 0
215 | 0xff444444
216 |
217 |
218 |
219 | 0
220 | 0xffaaaaaa
221 |
222 |
223 |
224 | 0
225 | 0xffaaaaaa
226 |
227 |
228 |
229 |
230 |
231 |
--------------------------------------------------------------------------------
/UtilityScripts/TextViewer/skin/skin.xur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TextViewer/skin/skin.xur
--------------------------------------------------------------------------------
/UtilityScripts/TuLocationFix/Main.lua:
--------------------------------------------------------------------------------
1 | scriptTitle = "TULocationFix"
2 | scriptAuthor = "Swizzy"
3 | scriptVersion = 1
4 | scriptIcon = "icon\\icon.png";
5 | scriptDescription = "TU Location Fix (adds support for USB#:\\ paths for TU's) This is only needed on 0.6b and only if you didn't do a fresh install"
6 |
7 | scriptPermissions = { "settings" }
8 |
9 | -- Main entry point to script
10 | function main()
11 | local ver = Aurora.GetDashVersion(); -- Get Aurora Version
12 | if ver.Major == 0 and ver.Minor == 6 then -- Check Aurora Version
13 | local set = Settings.GetSystem("TitleUpdateDevice"); -- Get current settings
14 | if set.TitleUpdateDevice.default == set.TitleUpdateDevice.value then -- Check if it's already what it needs to be...
15 | Script.ShowMessageBox("ERROR", "You don't need this fix, the value is already what it should be...", "OK");
16 | else
17 | set.TitleUpdateDevice.default = string.gsub(set.TitleUpdateDevice.default, "USB", "Usb", 3); -- Update the default to be lowercase Usb#
18 | if set.TitleUpdateDevice.default == set.TitleUpdateDevice.value then -- Check again if it's equal...
19 | Script.ShowMessageBox("ERROR", "You don't need this fix, the value is already what it should be...", "OK");
20 | else
21 | local res = Settings.SetSystem("TitleUpdateDevice", set.TitleUpdateDevice.default); -- Update the setting
22 | -- Debug info
23 | print("Original:");
24 | print(set);
25 | print("Result:");
26 | print(res);
27 | -- End of Debug info
28 | if res.TitleUpdateDevice.success then
29 | Script.ShowMessageBox("Success!","Successfully updated TU Location...", "OK");
30 | else
31 | Script.ShowMessageBox("ERROR", "Failed updating the setting", "OK");
32 | end
33 | end
34 | end
35 | else
36 | Script.ShowMessageBox("ERROR", "This script is only compatible with Aurora 0.6B", "OK");
37 | end
38 | end
--------------------------------------------------------------------------------
/UtilityScripts/TuLocationFix/icon/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/TuLocationFix/icon/icon.png
--------------------------------------------------------------------------------
/UtilityScripts/UnityLiNKInfo/AuroraUI.lua:
--------------------------------------------------------------------------------
1 | -- Enum used for setting type
2 | KeyboardFlag = enum {
3 | Default = 0,
4 | Full = 1,
5 | Email = 2,
6 | Gamertag = 4,
7 | Phone = 8,
8 | IPAddress = 16,
9 | Numeric = 32,
10 | Alphabet = 64,
11 | Password = 128,
12 | Subscription = 256,
13 | FocusDone = 268435456,
14 | Highlight = 536870912
15 | }
16 |
17 | PopupType = enum {
18 | Default = 0,
19 | Background = 1,
20 | Skin = 2,
21 | CoverLayout = 3,
22 | Language = 4 ,
23 | }
24 |
25 | PermissionFlag = enum {
26 | None = 0,
27 | FileManager = 256,
28 | View = 512,
29 | Settings = 1024,
30 | Details = 2048,
31 | QuickView = 4096,
32 | DeleteContent = 8192,
33 | RenameGame = 16384
34 | }
35 |
36 | GizmoCommand = enum {
37 | A = 1,
38 | X = 2,
39 | Y = 3,
40 | }
41 |
42 | XuiMessage = enum {
43 | Unknown = 0,
44 | Init = 1,
45 | Close = 2,
46 | Press = 3,
47 | Timer = 4,
48 | KeyDown = 5,
49 | KeyUp = 6,
50 | SelChanged = 7,
51 | Keyboard = 8,
52 | Passcode = 9,
53 | Msgbox = 10,
54 | Command = 11,
55 | };
56 |
57 | XuiObject = enum {
58 | Element = 0,
59 | Text = 1,
60 | Image = 2,
61 | Control = 3,
62 | Button = 4,
63 | RadioButton = 5,
64 | RadioGroup = 6,
65 | Label = 7,
66 | Edit = 8,
67 | List = 9,
68 | Scene = 10,
69 | TabScene = 11,
70 | ProgressBar = 12,
71 | Slider = 13,
72 | Checkbox = 14
73 | };
--------------------------------------------------------------------------------
/UtilityScripts/UnityLiNKInfo/Main.lua:
--------------------------------------------------------------------------------
1 | scriptTitle = "Unity LiNK Info";
2 | scriptAuthor = "saywaking";
3 | scriptVersion = 1;
4 | scriptDescription = "Get LiNK Info straight from Unity";
5 | scriptIcon = "icon\\icon.xur";
6 | scriptPermissions = { "http"};
7 |
8 | require("AuroraUI");
9 | local menu = require("MenuSystem");
10 | local json = require("json");
11 |
12 | function main()
13 | if isInitSuccessful() then
14 | Script.SetStatus( "Retrieving LiNK Title List...");
15 | Script.SetProgress( 30 );
16 |
17 | local linkTitleListTable = nil;
18 | local linkTitleListUrl = "http://xboxunity.net/Resources/Lib/TitleList.php?&search=&count=-1&sort=4&direction=1&category=3";
19 | local httpData = Http.Get(linkTitleListUrl);
20 |
21 | if httpData.OutputData ~= nil then
22 | linkTitleListTable = json:decode(httpData.OutputData);
23 | end
24 |
25 | if linkTitleListTable ~= nil then
26 | Script.SetStatus( "Reading LiNK Title List data...");
27 |
28 | Script.SetStatus( "Creating Menu...");
29 | Script.SetProgress( 50 );
30 |
31 | makeMenu(linkTitleListTable);
32 |
33 | Script.SetStatus( "Done ...");
34 | Script.SetProgress( 100 );
35 |
36 | showMenu();
37 | else
38 | Script.ShowMessageBox("Info", "LiNK Title List has no content. \nTry again later!", "Close");
39 | end
40 | end
41 |
42 | Script.SetStatus( "Done ...");
43 | Script.SetProgress( 100 );
44 | end
45 |
46 | function isInitSuccessful()
47 | local initSuccess = true;
48 |
49 | Script.SetStatus( "Initialising Script...");
50 |
51 | Script.SetStatus( "Checking JSON Helper...");
52 | if json ~= nil then
53 | Script.SetStatus( "JSON Helper passed...");
54 | else
55 | Script.SetStatus( "JSON Helper failed...");
56 | initSuccess = false;
57 | end
58 |
59 | Script.SetStatus( "Checking Internet Connection...");
60 | Script.SetProgress( 25 );
61 |
62 | if Aurora.HasInternetConnection() then
63 | Script.SetStatus( "Internet Connection passed...");
64 | else
65 | Script.SetStatus( "Internet Connection failed...");
66 | initSuccess = false;
67 | end
68 |
69 | return initSuccess;
70 | end
71 |
72 | function getMenuItemModifiedLength(menuItemString)
73 | local newString = menuItemString;
74 | local maxLength = 70;
75 | local reservedCharacterCount = 25;
76 |
77 |
78 | if string.len(newString) > (maxLength - reservedCharacterCount) then
79 | newString = string.sub(newString, (maxLength - reservedCharacterCount));
80 | else
81 | local fillLength = maxLength - reservedCharacterCount - string.len(newString);
82 | for i=1,fillLength do
83 | newString = newString .. " ";
84 | end
85 | end
86 |
87 | return newString;
88 | end
89 |
90 | function makeMenu(linkTitleListTable)
91 | Menu.ResetMenu();
92 | Menu.SetTitle(scriptTitle);
93 | Menu.SetGoBackText("");
94 | Menu.SetSortAlphaBetically(false);
95 |
96 | for i, title in pairs(linkTitleListTable.Items) do
97 | local menuItemName = title.Name .. " ............................. " .. title.UserCount .. " User";
98 | local titleMenuItem = Menu.MakeMenuItem(menuItemName, title);
99 |
100 | local progressNumber = getProgressForMakeMenu(i, linkTitleListTable.Count, 50)
101 | Script.SetProgress( progressNumber );
102 |
103 | if tonumber(title.UserCount) > 0 then
104 | Script.SetStatus( "Scanning " .. title.Name );
105 |
106 | local maxScanAttempts = 10;
107 | local scanAttempt = 0;
108 | local roomListTable = getRoomListTable(title.TitleID);
109 |
110 | while (roomListTable == nil) and (scanAttempt <= maxScanAttempts) do
111 | Script.SetStatus( "Error while scanning: " .. title.Name );
112 | Script.SetStatus( "Trying scan again: " .. title.Name );
113 | roomListTable = getRoomListTable(title.TitleID);
114 |
115 | scanAttempt = scanAttempt + 1;
116 | end
117 |
118 | if roomListTable ~= nil then
119 | -- Add Rooms to Title Menu Item
120 | for i, room in pairs(roomListTable) do
121 | local roomMenuItem = Menu.MakeMenuItem(room.RoomName .. " ............................. " .. room.TotalUsers .. " User", room);
122 |
123 | -- Add User to Room Menu Item
124 | for i, user in pairs(room.Users) do
125 | local userMenuItem = Menu.MakeMenuItem(user.Username, user);
126 |
127 | Menu.AddSubMenuItem(roomMenuItem, userMenuItem);
128 | end
129 |
130 | Menu.AddSubMenuItem(titleMenuItem, roomMenuItem);
131 | end
132 | else
133 | Script.SetStatus( "Error while scanning: " .. title.Name );
134 | end
135 | else
136 | Script.SetStatus( "Skipping: " .. title.Name );
137 | end
138 |
139 | Menu.AddMainMenuItem(titleMenuItem);
140 | end
141 | end
142 |
143 | function showMenu()
144 | local selectedMenuItem = {}
145 | local canceled = false;
146 | selectedMenuItem, _, canceled, menuItem = Menu.ShowMainMenu();
147 |
148 | if not canceled then
149 | handleItem(selectedMenuItem);
150 | showMenu();
151 | end
152 | end
153 |
154 | function handleItem(menuItem)
155 |
156 | if isEmptyTitleMenuItem(menuItem) then
157 | showInfo(menuItem, "Title Information");
158 | elseif isEmptyRoomMenuItem(menuItem) then
159 | showInfo(menuItem, "Room Information");
160 | elseif isUserMenuItem(menuItem) then
161 | showInfo(menuItem, "User Information");
162 | end
163 | end
164 |
165 | function getRoomListTable(titleID)
166 | local roomListUrl = "http://xboxunity.net/Resources/Lib/LinkInfo.php?titleid=" .. titleID;
167 | local httpData = Http.Get(roomListUrl);
168 |
169 | if httpData.Success then
170 | return json:decode(httpData.OutputData).Rooms;
171 | end
172 |
173 | return nil;
174 | end
175 |
176 | function showInfo(menuItem, messageBoxTitle)
177 | local info = "";
178 |
179 | for key, value in pairs(menuItem) do
180 | if (value ~= nil) and ((type(value) == "string" or type(value) == "number")) then
181 | info = info .. key .. ": " .. value .. "\n";
182 | end
183 | end
184 |
185 | Script.ShowMessageBox(messageBoxTitle, info, "OK");
186 | end
187 |
188 | function isEmptyTitleMenuItem(menuItem)
189 | if (menuItem.UserCount ~= nil) and (tonumber(menuItem.UserCount) < 1) then
190 | return true
191 | end
192 |
193 | return false;
194 | end
195 |
196 | function isEmptyRoomMenuItem(menuItem)
197 | if (menuItem.TotalUsers ~= nil) and (tonumber(menuItem.TotalUsers) < 1) then
198 | return true
199 | end
200 |
201 | return false;
202 | end
203 |
204 | function isUserMenuItem(menuItem)
205 | if menuItem.Username ~= nil then
206 | return true
207 | end
208 |
209 | return false;
210 | end
211 |
212 | function getProgressForMakeMenu(number, absolute, range)
213 | local prozent = ((number+1)/absolute) * range;
214 |
215 | return (range + math.floor(prozent));
216 | end
217 |
--------------------------------------------------------------------------------
/UtilityScripts/UnityLiNKInfo/MenuSystem.lua:
--------------------------------------------------------------------------------
1 | local TopLevelMenu = {}
2 | TopLevelMenu.SubMenu = {}
3 | local TitleText = "Menu";
4 | local EmptyText = "No Menu Available";
5 | local ExitOnCancel = false;
6 | local GoBackText = "Go Back";
7 | local SortAlphaBetically = true;
8 |
9 | _ShowMenu = function(menuItem)
10 | local menu = {}
11 | if SortAlphaBetically then
12 | table.sort(menuItem, function(a, b) return type(a) == "table" and type(b) == "table" and a.Name < b.Name; end);
13 | end
14 | for k, v in ipairs(menuItem) do
15 | if type(v) == "table" then
16 | menu[k] = v.Name;
17 | else
18 | if GoBackText ~= nil and GoBackText ~= "" then
19 | menu[k] = GoBackText; -- Only show the "Go Back" option if we actually have it set to something
20 | end
21 | end
22 | end
23 | local ret = Script.ShowPopupList(TitleText, EmptyText, menu);
24 | if ret.Canceled == true or (ret.Selected.Key == 1 and ret.Selected.Value == GoBackText) then
25 | if ExitOnCancel == true then
26 | return nil, menuItem, ret.Canceled, nil;
27 | end
28 | if menuItem.Parent == nil or menuItem.Parent.Parent == nil then
29 | return nil, menuItem, ret.Canceled, nil;
30 | else
31 | menu = nil;
32 | ret = nil;
33 | return _ShowMenu(menuItem.Parent.Parent);
34 | end
35 | else
36 | ret = menuItem[ret.Selected.Key];
37 | if ret.SubMenu == nil then
38 | return ret.Data, menuItem, false, ret;
39 | else
40 | menu = nil;
41 | return _ShowMenu(ret.SubMenu);
42 | end
43 | end
44 | end
45 |
46 | Menu = {
47 | ShowMenu = function(menuItem)
48 | return _ShowMenu(menuItem); -- Call the actual function^
49 | end,
50 | ShowMainMenu = function()
51 | return _ShowMenu(TopLevelMenu.SubMenu); -- Show the main menu (TopLevelMenu.SubMenu)
52 | end,
53 | ResetMenu = function()
54 | TopLevelMenu.SubMenu = {} -- Reset the menu to be empty
55 | TitleText = "Menu"; -- Reset title to the default one
56 | EmptyText = "No Menu Available"; -- Reset empty text to the default one
57 | ExitOnCancel = false; -- Reset ExitOnCancel to it's default value
58 | GoBackText = "Go Back"; -- Reset GoBackText to it's default value
59 | end,
60 | MakeMenuItem = function(displayName, data)
61 | return {
62 | Name = displayName; -- Set the Name Property to be displayed in the menu
63 | Data = data; -- Set the data property, if any...
64 | }
65 | end,
66 | AddSubMenuItem = function(menuItem, subMenuItem)
67 | if menuItem.SubMenu == nil then -- Check if we have a SubMenu already or not
68 | menuItem.SubMenu = {} -- Add the SubMenu table
69 | menuItem.SubMenu[1] = GoBackText; -- Add a "Go Back" to the Sub Menu
70 | menuItem.SubMenu.Parent = menuItem; -- Set the parent of the SubMenu to the menu we're adding it to
71 | end
72 | subMenuItem.Parent = menuItem.SubMenu; -- Set the parent of the subMenuItem to the SubMenu table so we can go further up the chain
73 | table.insert(menuItem.SubMenu, subMenuItem); -- Insert the subMenuItem to the menu
74 | end,
75 | AddMainMenuItem = function(menuItem)
76 | if TopLevelMenu.SubMenu == nil then -- Check if we have a SubMenu already or not
77 | TopLevelMenu.SubMenu = {} -- Add the SubMenu table
78 | TopLevelMenu.SubMenu.Parent = TopLevelMenu; -- Set SubMenu parent to TopLevelMenu
79 | end
80 | menuItem.Parent = TopLevelMenu.SubMenu; -- Set the parent of the subMenuItem to the SubMenu table so we can go further up the chain
81 | table.insert(TopLevelMenu.SubMenu, menuItem); -- Insert the menuItem to the menu
82 | end,
83 | SetTitle = function(title)
84 | TitleText = title; -- Set the TitleText
85 | end,
86 | SetEmptyText = function(emptyText)
87 | EmptyText = emptyText; -- Set the text to be shown if the menu is empty
88 | end,
89 | SetExitOnCancel = function(exitOnCancel)
90 | ExitOnCancel = exitOnCancel == true; -- Set the flag that tells the menu system to exit upon being canceled (B being pressed)
91 | end,
92 | SetGoBackText = function(goBackText)
93 | GoBackText = goBackText; -- Set the text for the return/back menu item
94 | end,
95 | SetSortAlphaBetically = function(sortAlphaBetically)
96 | SortAlphaBetically = sortAlphaBetically == true; -- Set the flag that tells us if we should sort alphabetically
97 | end,
98 | IsMainMenu = function(menu)
99 | return menu == TopLevelMenu.SubMenu;
100 | end
101 | }
102 |
103 | return Menu;
--------------------------------------------------------------------------------
/UtilityScripts/UnityLiNKInfo/icon/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/UnityLiNKInfo/icon/icon.png
--------------------------------------------------------------------------------
/UtilityScripts/UnityLiNKInfo/icon/icon.xui:
--------------------------------------------------------------------------------
1 |
2 |
3 | 64.000000
4 | 64.000000
5 |
6 |
7 |
8 | IconScene
9 | 64.000000
10 | 64.000000
11 | true
12 |
13 |
14 |
15 | AnimationStrip
16 | 384.000000
17 | 64.000000
18 | 1
19 | icon.png
20 |
21 |
22 |
23 |
24 | AnimationStrip
25 | Position
26 |
27 |
28 | 1
29 | 0.000000,0.000000,0.000000
30 |
31 |
32 |
33 | 1
34 | -64.000000,0.000000,0.000000
35 |
36 |
37 |
38 | 1
39 | -128.000000,0.000000,0.000000
40 |
41 |
42 |
43 | 1
44 | -192.000000,0.000000,0.000000
45 |
46 |
47 |
48 | 1
49 | -256.000000,0.000000,0.000000
50 |
51 |
52 |
53 | 1
54 | -320.000000,0.000000,0.000000
55 |
56 |
57 |
58 | 0
59 | -320.000000,0.000000,0.000000
60 |
61 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/UtilityScripts/UnityLiNKInfo/icon/icon.xur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/UnityLiNKInfo/icon/icon.xur
--------------------------------------------------------------------------------
/UtilityScripts/UnityLiNKInfo/skin/skin.xui:
--------------------------------------------------------------------------------
1 |
2 |
3 | 780.000000
4 | 352.000000
5 |
6 |
7 |
8 | XuiLabel_Regular_18pt_Left
9 | 780.000000
10 | 352.000000
11 | 5
12 |
13 |
14 |
15 | txtMain
16 | 1560.000000
17 | 64.000000
18 | -1.000000,0.000000,0.000000
19 | 0.500000,0.500000,1.000000
20 | 5
21 | 0xff444444
22 | 0x800f0f0f
23 | 36.000000
24 | 16656
25 |
26 |
27 |
28 |
29 |
30 | Normal
31 |
32 |
33 |
34 | EndNormal
35 |
36 | stop
37 |
38 |
39 | NormalDisable
40 |
41 |
42 |
43 | EndNormalDisable
44 |
45 | stop
46 |
47 |
48 |
49 |
50 |
51 |
52 | XuiLabel_Regular_18pt_Right
53 | 780.000000
54 | 352.000000
55 | 5
56 |
57 |
58 |
59 | txtMain
60 | 1561.056030
61 | 64.000000
62 | -1.000000,0.000000,0.000000
63 | 0.500000,0.500000,1.000000
64 | 5
65 | 0xff444444
66 | 0x800f0f0f
67 | 36.000000
68 | 16912
69 |
70 |
71 |
72 |
73 |
74 | Normal
75 |
76 |
77 |
78 | EndNormal
79 |
80 | stop
81 |
82 |
83 | NormalDisable
84 |
85 |
86 |
87 | EndNormalDisable
88 |
89 | stop
90 |
91 |
92 |
93 |
94 |
95 |
96 | XuiLabel_Regular_20pt_Left
97 | 250.000000
98 | 42.000000
99 | 5
100 |
101 |
102 |
103 | txtMain
104 | 500.000000
105 | 102.000000
106 | -1.000000,-9.500000,0.000000
107 | 0.500000,0.500000,1.000000
108 | 5
109 | 0xff444444
110 | 0x800f0f0f
111 | 40.000000
112 | 16656
113 |
114 |
115 |
116 |
117 |
118 | Normal
119 |
120 |
121 |
122 | EndNormal
123 |
124 | stop
125 |
126 |
127 | NormalDisable
128 |
129 |
130 |
131 | EndNormalDisable
132 |
133 | stop
134 |
135 |
136 |
137 | txtMain
138 | TextColor
139 |
140 |
141 | 0
142 | 0xff444444
143 |
144 |
145 |
146 | 0
147 | 0xff444444
148 |
149 |
150 |
151 | 0
152 | 0xffaaaaaa
153 |
154 |
155 |
156 | 0
157 | 0xffaaaaaa
158 |
159 |
160 |
161 |
162 |
163 |
164 | XuiLabel_Regular_20pt_Right
165 | 250.000000
166 | 42.000000
167 | 5
168 |
169 |
170 |
171 | txtMain
172 | 500.000000
173 | 102.000000
174 | -1.000000,-9.500000,0.000000
175 | 0.500000,0.500000,1.000000
176 | 5
177 | 0xff444444
178 | 0x800f0f0f
179 | 40.000000
180 | 16912
181 |
182 |
183 |
184 |
185 |
186 | Normal
187 |
188 |
189 |
190 | EndNormal
191 |
192 | stop
193 |
194 |
195 | NormalDisable
196 |
197 |
198 |
199 | EndNormalDisable
200 |
201 | stop
202 |
203 |
204 |
205 | txtMain
206 | TextColor
207 |
208 |
209 | 0
210 | 0xff444444
211 |
212 |
213 |
214 | 0
215 | 0xff444444
216 |
217 |
218 |
219 | 0
220 | 0xffaaaaaa
221 |
222 |
223 |
224 | 0
225 | 0xffaaaaaa
226 |
227 |
228 |
229 |
230 |
231 |
--------------------------------------------------------------------------------
/UtilityScripts/UnityLiNKInfo/skin/skin.xur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/UnityLiNKInfo/skin/skin.xur
--------------------------------------------------------------------------------
/UtilityScripts/Weather/AuroraUI.lua:
--------------------------------------------------------------------------------
1 | -- Enum used for setting type
2 | KeyboardFlag = enum {
3 | Default = 0,
4 | Full = 1,
5 | Email = 2,
6 | Gamertag = 4,
7 | Phone = 8,
8 | IPAddress = 16,
9 | Numeric = 32,
10 | Alphabet = 64,
11 | Password = 128,
12 | Subscription = 256,
13 | FocusDone = 268435456,
14 | Highlight = 536870912
15 | }
16 |
17 | PopupType = enum {
18 | Default = 0,
19 | Background = 1,
20 | Skin = 2,
21 | CoverLayout = 3,
22 | Language = 4
23 | }
24 |
25 | PermissionFlag = enum {
26 | None = 0,
27 | FileManager = 256,
28 | View = 512,
29 | Settings = 1024,
30 | Details = 2048,
31 | QuickView = 4096,
32 | DeleteContent = 8192,
33 | RenameGame = 16384
34 | }
35 |
36 | GizmoCommand = enum {
37 | A = 1,
38 | X = 2,
39 | Y = 3
40 | }
41 |
42 | XuiMessage = enum {
43 | Unknown = 0,
44 | Init = 1,
45 | Close = 2,
46 | Press = 3,
47 | Timer = 4,
48 | KeyDown = 5,
49 | KeyUp = 6,
50 | SelChanged = 7,
51 | Keyboard = 8,
52 | Passcode = 9,
53 | Msgbox = 10,
54 | Command = 11
55 | };
56 |
57 | XuiObject = enum {
58 | Element = 0,
59 | Text = 1,
60 | Image = 2,
61 | Control = 3,
62 | Button = 4,
63 | RadioButton = 5,
64 | RadioGroup = 6,
65 | Label = 7,
66 | Edit = 8,
67 | List = 9,
68 | Scene = 10,
69 | TabScene = 11,
70 | ProgressBar = 12,
71 | Slider = 13,
72 | Checkbox = 14
73 | };
74 |
--------------------------------------------------------------------------------
/UtilityScripts/Weather/icon/icon.xui:
--------------------------------------------------------------------------------
1 |
2 |
3 | 64.000000
4 | 64.000000
5 |
6 |
7 |
8 | IconScene
9 | 64.000000
10 | 64.000000
11 | true
12 |
13 |
14 |
15 | AnimationStrip
16 | 384.000000
17 | 64.000000
18 | 1
19 | weather.png
20 |
21 |
22 |
23 |
24 | AnimationStrip
25 | Position
26 |
27 |
28 | 1
29 | 0.000000,0.000000,0.000000
30 |
31 |
32 |
33 | 1
34 | -64.000000,0.000000,0.000000
35 |
36 |
37 |
38 | 1
39 | -128.000000,0.000000,0.000000
40 |
41 |
42 |
43 | 1
44 | -192.000000,0.000000,0.000000
45 |
46 |
47 |
48 | 1
49 | -256.000000,0.000000,0.000000
50 |
51 |
52 |
53 | 1
54 | -320.000000,0.000000,0.000000
55 |
56 |
57 |
58 | 0
59 | -320.000000,0.000000,0.000000
60 |
61 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/UtilityScripts/Weather/icon/icon.xur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/icon/icon.xur
--------------------------------------------------------------------------------
/UtilityScripts/Weather/icon/icon_anim.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/icon/icon_anim.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/icon/weather.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/icon/weather.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/images/LeftBumper.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/images/LeftBumper.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/images/RightBumper.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/images/RightBumper.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/chanceflurries.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/chanceflurries.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/chancerain.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/chancerain.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/chancesleet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/chancesleet.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/chancesnow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/chancesnow.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/chancetstorms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/chancetstorms.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/clear.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/clear.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/cloudy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/cloudy.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/flurries.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/flurries.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/hazy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/hazy.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/mostlycloudy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/mostlycloudy.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/mostlysunny.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/mostlysunny.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/partlycloudy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/partlycloudy.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/partlysunny.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/partlysunny.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/rain.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/rain.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/sleet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/sleet.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/snow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/snow.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/sunny.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/sunny.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/tstorms.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/tstorms.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weather/unknown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weather/unknown.png
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weatherscene.xur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weatherscene.xur
--------------------------------------------------------------------------------
/UtilityScripts/Weather/skin/weatherskin.xur:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/Weather/skin/weatherskin.xur
--------------------------------------------------------------------------------
/UtilityScripts/XefuSpoofer/MenuSystem.lua:
--------------------------------------------------------------------------------
1 | local TopLevelMenu = {}
2 | TopLevelMenu.SubMenu = {}
3 | local TitleText = "Menu";
4 | local EmptyText = "No Menu Available";
5 | local ExitOnCancel = false;
6 | local GoBackText = "Go Back";
7 | local SortAlphaBetically = false;
8 |
9 | _ShowMenu = function(menuItem)
10 | local menu = {}
11 | if SortAlphaBetically then
12 | table.sort(menuItem, function(a, b) return type(a) == "table" and type(b) == "table" and a.Name < b.Name; end);
13 | end
14 | for k, v in ipairs(menuItem) do
15 | if type(v) == "table" then
16 | menu[k] = v.Name;
17 | else
18 | if GoBackText ~= nil and GoBackText ~= "" then
19 | menu[k] = GoBackText; -- Only show the "Go Back" option if we actually have it set to something
20 | end
21 | end
22 | end
23 | local ret = Script.ShowPopupList(TitleText, EmptyText, menu);
24 | if ret.Canceled == true or (ret.Selected.Key == 1 and ret.Selected.Value == GoBackText) then
25 | if ret.Canceled == true then
26 | if ExitOnCancel == true then
27 | return nil, menuItem, ret.Canceled, nil;
28 | end
29 | end
30 | if menuItem.Parent == nil or menuItem.Parent.Parent == nil then
31 | return nil, menuItem, ret.Canceled, nil;
32 | else
33 | menu = nil;
34 | ret = nil;
35 | return _ShowMenu(menuItem.Parent.Parent);
36 | end
37 | else
38 | ret = menuItem[ret.Selected.Key];
39 | if ret.SubMenu == nil then
40 | return ret.Data, menuItem, false, ret;
41 | else
42 | menu = nil;
43 | return _ShowMenu(ret.SubMenu);
44 | end
45 | end
46 | end
47 |
48 | Menu = {
49 | ShowMenu = function(menuItem)
50 | return _ShowMenu(menuItem); -- Call the actual function^
51 | end,
52 | ShowMainMenu = function()
53 | return _ShowMenu(TopLevelMenu.SubMenu); -- Show the main menu (TopLevelMenu.SubMenu)
54 | end,
55 | ResetMenu = function()
56 | TopLevelMenu.SubMenu = {} -- Reset the menu to be empty
57 | TitleText = "Menu"; -- Reset title to the default one
58 | EmptyText = "No Menu Available"; -- Reset empty text to the default one
59 | ExitOnCancel = false; -- Reset ExitOnCancel to it's default value
60 | GoBackText = "Go Back"; -- Reset GoBackText to it's default value
61 | end,
62 | MakeMenuItem = function(displayName, data)
63 | return {
64 | Name = displayName; -- Set the Name Property to be displayed in the menu
65 | Data = data; -- Set the data property, if any...
66 | }
67 | end,
68 | AddSubMenuItem = function(menuItem, subMenuItem)
69 | if menuItem.SubMenu == nil then -- Check if we have a SubMenu already or not
70 | menuItem.SubMenu = {} -- Add the SubMenu table
71 | menuItem.SubMenu[1] = GoBackText; -- Add a "Go Back" to the Sub Menu
72 | menuItem.SubMenu.Parent = menuItem; -- Set the parent of the SubMenu to the menu we're adding it to
73 | end
74 | subMenuItem.Parent = menuItem.SubMenu; -- Set the parent of the subMenuItem to the SubMenu table so we can go further up the chain
75 | table.insert(menuItem.SubMenu, subMenuItem); -- Insert the subMenuItem to the menu
76 | end,
77 | AddMainMenuItem = function(menuItem)
78 | if TopLevelMenu.SubMenu == nil then -- Check if we have a SubMenu already or not
79 | TopLevelMenu.SubMenu = {} -- Add the SubMenu table
80 | TopLevelMenu.SubMenu.Parent = TopLevelMenu; -- Set SubMenu parent to TopLevelMenu
81 | end
82 | menuItem.Parent = TopLevelMenu.SubMenu; -- Set the parent of the subMenuItem to the SubMenu table so we can go further up the chain
83 | table.insert(TopLevelMenu.SubMenu, menuItem); -- Insert the menuItem to the menu
84 | end,
85 | SetTitle = function(title)
86 | TitleText = title; -- Set the TitleText
87 | end,
88 | SetEmptyText = function(emptyText)
89 | EmptyText = emptyText; -- Set the text to be shown if the menu is empty
90 | end,
91 | SetExitOnCancel = function(exitOnCancel)
92 | ExitOnCancel = exitOnCancel == true; -- Set the flag that tells the menu system to exit upon being canceled (B being pressed)
93 | end,
94 | SetGoBackText = function(goBackText)
95 | GoBackText = goBackText; -- Set the text for the return/back menu item
96 | end,
97 | SetSortAlphaBetically = function(sortAlphaBetically)
98 | SortAlphaBetically = sortAlphaBetically == true; -- Set the flag that tells us if we should sort alphabetically
99 | end,
100 | IsMainMenu = function(menu)
101 | return menu == TopLevelMenu.SubMenu;
102 | end
103 | }
104 |
105 | return Menu;
--------------------------------------------------------------------------------
/UtilityScripts/XefuSpoofer/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/XboxUnity/AuroraScripts/5404e79ab9e2efcbcad4b9339354d54ebd231dfb/UtilityScripts/XefuSpoofer/icon.png
--------------------------------------------------------------------------------