Skip to content
This repository was archived by the owner on Jul 21, 2024. It is now read-only.

Commit

Permalink
v2.3.6 Update
Browse files Browse the repository at this point in the history
v2.3.6 Open Source Code Update
  • Loading branch information
MiKing233 committed May 7, 2019
1 parent f73eb35 commit d331dd1
Show file tree
Hide file tree
Showing 6 changed files with 496 additions and 484 deletions.
260 changes: 130 additions & 130 deletions config.table
Original file line number Diff line number Diff line change
@@ -1,88 +1,188 @@
{
["view_attribute"] = {
["顶栏阴影强度"] = "2dp" ;
["搜索栏阴影强度"] = "2dp" ;
["顶栏标题"] = "Steam Go" ;
["顶栏高度"] = "56dp" ;
["侧滑栏宽度"] = "200dp" ;
["搜索栏圆角弧度"] = "2dp" ;
["搜索栏阴影强度"] = "2dp" ;
["顶栏标题"] = "Steam Go" ;
} ;
["fltBtn"] = {
["图标"] = "" ;
["显示"] = true ;
["点击事件"] = "进入子页面(\"Universal UI\",{链接=\"https://help.steampowered.com/zh-cn/accountdata\"})" ;
} ;
["sidebar"] = {
["启用顶部图片"] = false ;
["启用"] = true ;
["items"] = {
[1] = {
["name"] = "特别优惠" ;
["onClick"] = "进入子页面(\"Discounted\")" ;
["icon"] = "drawable/ic_style_black_48dp.png" ;
["name"] = "特别优惠" ;
} ;
[2] = {
["name"] = "浏览商店" ;
["onClick"] = "进入子页面(\"Steam Store\")" ;
["icon"] = "drawable/ic_store_black_48dp.png" ;
["name"] = "浏览商店" ;
} ;
[3] = {
["name"] = "浏览社区" ;
["onClick"] = "进入子页面(\"Steam Community\")\
\
Toast.makeText(activity,\"该页面访问的域名位于Steam社区\\n(steamcommunity.com)下\\n中国大陆地区可能需要科学上网才能访问\" , Toast.LENGTH_LONG )\
.show()" ;
["icon"] = "drawable/ic_group_work_black_48dp.png" ;
["name"] = "浏览社区" ;
} ;
[4] = {
["name"] = "我的资料" ;
["onClick"] = "进入子页面(\"Universal UI\",{链接=\"https://steamcommunity.com/login\"})\
\
Toast.makeText(activity,\"该页面访问的域名位于Steam社区\\n(steamcommunity.com)下\\n中国大陆地区可能需要科学上网才能访问\" , Toast.LENGTH_LONG )\
.show()" ;
["icon"] = "drawable/ic_face_black_48dp.png" ;
["name"] = "我的资料" ;
} ;
[5] = {
["name"] = "我的好友" ;
["onClick"] = "进入子页面(\"Steam Friends\")\
\
Toast.makeText(activity,\"该页面访问的域名位于Steam社区\\n(steamcommunity.com)下\\n中国大陆地区可能需要科学上网才能访问\" , Toast.LENGTH_LONG )\
.show()" ;
["icon"] = "drawable/ic_supervisor_account_black_48dp.png" ;
["name"] = "我的好友" ;
} ;
[6] = {
["name"] = "好友动态" ;
["onClick"] = "进入子页面(\"Universal UI\",{链接=\"https://steamcommunity.com/id/username/home/\"})\
\
\
Toast.makeText(activity,\"该页面访问的域名位于Steam社区\\n(steamcommunity.com)下\\n中国大陆地区可能需要科学上网才能访问\" , Toast.LENGTH_LONG )\
.show()" ;
["icon"] = "drawable/comment_text.png" ;
["name"] = "好友动态" ;
} ;
[7] = {
["name"] = "愿望单" ;
["onClick"] = "进入子页面(\"Universal UI\",{链接=\"https://store.steampowered.com/wishlist\"})" ;
["icon"] = "drawable/ic_loyalty_black_48dp.png" ;
["name"] = "愿望单" ;
} ;
[8] = {
["name"] = "购物车" ;
["onClick"] = "进入子页面(\"Universal UI\",{链接=\"https://store.steampowered.com/cart\"})" ;
["icon"] = "drawable/ic_shopping_cart_black_48dp.png" ;
["name"] = "购物车" ;
} ;
[9] = {
["name"] = "关于" ;
["onClick"] = "进入子页面(\"About Steam Go\")" ;
["icon"] = "drawable/ic_info_black_48dp.png" ;
["name"] = "关于" ;
} ;
} ;
["启用"] = true ;
} ;
["switch"] = {
["显示状态栏"] = true ;
["横屏"] = false ;
["支持滑动页面"] = true ;
["启用启动图"] = false ;
["toolbar"] = {
["icon_btns"] = {
[2] = {
["onClick"] = "EMUI5Dialog=require\"EMUI5Dialog\"\
exitConfirmDialog=EMUI5Dialog()\
--:setBackgroundColor(\"FFFFFFFF\")\
:setTitle(\"更多选项\")\
:setNegativeButton(\"Steam客服\",function()\
进入子页面(\"Universal UI\",{链接=\"https://help.steampowered.com/zh-cn\"})\
end)\
:setNeutralButton(\"近期购买记录\",function()\
进入子页面(\"Universal UI\",{链接=\"https://help.steampowered.com/zh-cn/wizard/HelpWithPurchase\"})\
end)\
:setPositiveButton(\"在Steam上激活产品\",function()\
进入子页面(\"Universal UI\",{链接=\"https://store.steampowered.com/account/registerkey\"})\
end)\
:show()" ;
["icon"] = "dots_vertical" ;
} ;
[1] = {
["onClick"] = "进入子页面(\"Universal UI\",{链接=\"https://steamcommunity.com/profiles/76561198408205511/home/invites\"})" ;
["icon"] = "ic_notifications_none_black_48dp" ;
} ;
} ;
["搜索URL"] = "" ;
["搜索框提示"] = "" ;
["输入栏模式"] = false ;
["menus"] = {
} ;
["启用搜索功能"] = false ;
} ;
["colors"] = {
["导航栏"] = "#ff171a21" ;
["悬浮按钮图标"] = "#ffffffff" ;
["搜索栏背景"] = "#ff171a21" ;
["侧滑栏背景"] = "#00000000" ;
["侧滑栏列表文字"] = "#ffffffff" ;
["顶栏部件触摸"] = "#22ffffff" ;
["搜索栏部件触摸"] = "#44000000" ;
["顶栏部件"] = "#ffffffff" ;
["悬浮按钮"] = "#ff171a21" ;
["侧滑栏列表图标"] = "#ffffffff" ;
["搜索栏部件"] = "#ff888888" ;
["进度条"] = "#00000000" ;
["搜索栏提示文字"] = "#ffffffff" ;
["顶栏"] = "#ff171a21" ;
} ;
["global_js"] = "" ;
["events"] = {
["网页加载完毕"] = "--网页加载完毕后执行的事件\
\
--接收参数\
浏览器对象,网页链接=..." ;
["收到新标题"] = "--浏览器加载新页面并获得新标题时执行的事件\
\
--接收参数\
浏览器对象,新标题=..." ;
["网页即将加载"] = "浏览器对象,网页链接=...\
\
if(网页链接:find\"https://store.steampowered.com/app\") then\
停止加载()\
进入子页面(\"Universal UI\",{链接=网页链接})\
end--应用详情\
\
if(网页链接:find\"https://store.steampowered.com/search\")then\
停止加载()\
进入子页面(\"Universal UI\",{链接=网页链接})\
end--搜索结果\
\
if(网页链接:find\"https://store.steampowered.com/account/registerkey\")then\
停止加载()\
进入子页面(\"Universal UI\",{链接=网页链接})\
end--产品激活\
\
if(网页链接:find\"https://store.steampowered.com/account/wishlist\")then\
停止加载()\
进入子页面(\"Universal UI\",{链接=网页链接})\
end--愿望单\
\
if(网页链接:find\"https://store.steampowered.com/account/cart\")then\
停止加载()\
进入子页面(\"Universal UI\",{链接=网页链接})\
end--购物车\
\
if(网页链接:find\"https://steamcommunity.com/chat\")then\
停止加载()\
进入子页面(\"Steam Friends\")\
end--好友页面\
\
if(网页链接:find\"https://store.steampowered.com/login\")then--登录判定\
exitConfirmDialog=EMUI5Dialog()\
:setBlurBackgroundEnable(false)--开启模糊背景\
--:setBackgroundColor(\"FFFFFFFF\")\
:setTitle(\"Steam账户未登录\")\
:setMessage(\"Steam Go相关服务依赖Steam账户,登录以获得最佳体验\",\"#FF212121\")\
--:setView(loadlayout{Button,text=\"自定义布局\",onClick=function()exitConfirmDialog:dismiss()end})\
:setPositiveButton(\"知道了\",\
function()\
end,0xFF1A73E8)\
--:setCancelable(false)--设置禁止取消对话框\
:setBlurBackgroundCacheEnable(false)--开启缓存,稍后修改时无需再次截图,注意如果不再用到,记得关闭模糊背景缓存以删除缓存的模糊背景图片\
:setOnDismissEvent(\
function()--设置对话框关闭事件\
exitConfirmDialog:setBlurBackgroundCacheEnable(false)--关闭模糊背景缓存,同时会清除已经缓存的模糊背景图片\
end)\
:show()\
end--登录账户提示" ;
["程序启动"] = "import \"android.app.*\"\
import \"android.os.*\"\
import \"android.widget.*\"\
Expand Down Expand Up @@ -456,120 +556,12 @@ return true\
end\
end\
--退出确认 End" ;
["收到新标题"] = "--浏览器加载新页面并获得新标题时执行的事件\
\
--接收参数\
浏览器对象,新标题=..." ;
["网页即将加载"] = "浏览器对象,网页链接=...\
\
if(网页链接:find\"https://store.steampowered.com/app\") then\
停止加载()\
进入子页面(\"Universal UI\",{链接=网页链接})\
end--应用详情\
\
if(网页链接:find\"https://store.steampowered.com/search\")then\
停止加载()\
进入子页面(\"Universal UI\",{链接=网页链接})\
end--搜索结果\
\
if(网页链接:find\"https://store.steampowered.com/account/registerkey\")then\
停止加载()\
进入子页面(\"Universal UI\",{链接=网页链接})\
end--产品激活\
\
if(网页链接:find\"https://store.steampowered.com/account/wishlist\")then\
停止加载()\
进入子页面(\"Universal UI\",{链接=网页链接})\
end--愿望单\
\
if(网页链接:find\"https://store.steampowered.com/account/cart\")then\
停止加载()\
进入子页面(\"Universal UI\",{链接=网页链接})\
end--购物车\
\
if(网页链接:find\"https://steamcommunity.com/chat\")then\
停止加载()\
进入子页面(\"Steam Friends\")\
end--好友页面\
\
if(网页链接:find\"https://store.steampowered.com/login\")then--登录判定\
exitConfirmDialog=EMUI5Dialog()\
:setBlurBackgroundEnable(false)--开启模糊背景\
--:setBackgroundColor(\"FFFFFFFF\")\
:setTitle(\"Steam账户未登录\")\
:setMessage(\"Steam Go相关服务依赖Steam账户,登录以获得最佳体验\",\"#FF212121\")\
--:setView(loadlayout{Button,text=\"自定义布局\",onClick=function()exitConfirmDialog:dismiss()end})\
:setPositiveButton(\"知道了\",\
function()\
end,0xFF1A73E8)\
--:setCancelable(false)--设置禁止取消对话框\
:setBlurBackgroundCacheEnable(false)--开启缓存,稍后修改时无需再次截图,注意如果不再用到,记得关闭模糊背景缓存以删除缓存的模糊背景图片\
:setOnDismissEvent(\
function()--设置对话框关闭事件\
exitConfirmDialog:setBlurBackgroundCacheEnable(false)--关闭模糊背景缓存,同时会清除已经缓存的模糊背景图片\
end)\
:show()\
end--登录账户提示" ;
} ;
["web"] = {
["支持打开外部应用"] = false ;
["启用长按菜单"] = false ;
["网页沉浸"] = false ;
["启用进度条"] = false ;
["浏览器用户标识"] = "默认" ;
["启动网页"] = "https://store.steampowered.com/account" ;
} ;
["colors"] = {
["悬浮按钮"] = "#ff171a21" ;
["顶栏部件触摸"] = "#22ffffff" ;
["搜索栏部件"] = "#ff888888" ;
["进度条"] = "#00000000" ;
["侧滑栏背景"] = "#00000000" ;
["导航栏"] = "#ff171a21" ;
["悬浮按钮图标"] = "#ffffffff" ;
["顶栏部件"] = "#ffffffff" ;
["侧滑栏列表文字"] = "#ffffffff" ;
["侧滑栏列表图标"] = "#ffffffff" ;
["搜索栏背景"] = "#ff171a21" ;
["搜索栏提示文字"] = "#ffffffff" ;
["搜索栏部件触摸"] = "#44000000" ;
["顶栏"] = "#ff171a21" ;
} ;
["toolbar"] = {
["搜索框提示"] = "" ;
["搜索URL"] = "" ;
["icon_btns"] = {
[2] = {
["icon"] = "dots_vertical" ;
["onClick"] = "EMUI5Dialog=require\"EMUI5Dialog\"\
exitConfirmDialog=EMUI5Dialog()\
--:setBackgroundColor(\"FFFFFFFF\")\
:setTitle(\"更多选项\")\
:setNegativeButton(\"Steam客服\",function()\
进入子页面(\"Universal UI\",{链接=\"https://help.steampowered.com/zh-cn\"})\
end)\
:setNeutralButton(\"近期购买记录\",function()\
进入子页面(\"Universal UI\",{链接=\"https://help.steampowered.com/zh-cn/wizard/HelpWithPurchase\"})\
end)\
:setPositiveButton(\"在Steam上激活产品\",function()\
进入子页面(\"Universal UI\",{链接=\"https://store.steampowered.com/account/registerkey\"})\
end)\
:show()" ;
} ;
[1] = {
["icon"] = "ic_notifications_none_black_48dp" ;
["onClick"] = "进入子页面(\"Universal UI\",{链接=\"https://steamcommunity.com/profiles/76561198408205511/home/invites\"})" ;
} ;
} ;
["输入栏模式"] = false ;
["启用搜索功能"] = false ;
["menus"] = {
} ;
} ;
["fltBtn"] = {
["点击事件"] = "进入子页面(\"Universal UI\",{链接=\"https://help.steampowered.com/zh-cn/accountdata\"})" ;
["图标"] = "" ;
["显示"] = true ;
["switch"] = {
["启用启动图"] = false ;
["横屏"] = false ;
["显示状态栏"] = true ;
["支持滑动页面"] = true ;
} ;
["web_control"] = {
[1] = {
Expand All @@ -588,4 +580,12 @@ end)\
["js"] = "document.getElementsByClassName(\"responsive_page_content\")[0].style.paddingTop=0;" ;
} ;
} ;
["web"] = {
["浏览器用户标识"] = "默认" ;
["支持打开外部应用"] = false ;
["启动网页"] = "https://store.steampowered.com/account" ;
["启用长按菜单"] = false ;
["网页沉浸"] = false ;
["启用进度条"] = false ;
} ;
} ;
8 changes: 5 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
template="tool"
packagename="com.miking.steam"
appcode="235"
appcode="236"
appname="Steam Go"
appver="2.3.5"
appver="2.3.6"
user_permission={
[1] = "ACCESS_NETWORK_STATE" ;
[2] = "ACCESS_WIFI_STATE" ;
[3] = "INTERNET" ;
} ;
packagename="com.miking.steam"

--require "import" import"loadlayout" import"loadmenu" import"loadbitmap"
Loading

0 comments on commit d331dd1

Please sign in to comment.