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

Commit

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

0 comments on commit 38bee85

Please sign in to comment.