Add files via upload
This commit is contained in:
parent
2fb213e424
commit
efc5ee4dd7
@ -1,11 +1,11 @@
|
||||
Laptop created by GamingAssociation39
|
||||
|
||||
================================================================
|
||||
License of source code and textures: WTFPL
|
||||
-----------------------------------------------------------------
|
||||
This program is free software. It comes without any warranty, to
|
||||
the extent permitted by applicable law. You can redistribute it
|
||||
and/or modify it under the terms of the do whatever you want with it.
|
||||
To Public License, Version 2, as published by Sam Hocevar. See
|
||||
http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||
License of source code and textures: LGPL v3
|
||||
|
||||
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below.
|
||||
================================================================
|
35
apps/browser_page_pk_app.lua
Normal file
35
apps/browser_page_pk_app.lua
Normal file
@ -0,0 +1,35 @@
|
||||
laptop.register_view("persistentkingdoms.servers.minetest", {
|
||||
app_info = "Persistent Kingdoms Server Info",
|
||||
browser_page = true,
|
||||
browser_main_page = true,
|
||||
formspec_func = function(app, mtos)
|
||||
local formspec = laptop.browser_api.header_formspec_func(app, mtos) ..
|
||||
mtos.theme:get_label('.1,1', 'Welcome to Persistent Kingdoms [City vs City]!')..
|
||||
mtos.theme:get_label('.1,1.5', 'Server IP: elkien3.com (138.197.22.104) Port: 30000')..
|
||||
mtos.theme:get_label('.1,1.9', 'Basic idea: create a world were players interact in a way different, more cinematic way than normal. also its medieval. (so build accordingly)')..
|
||||
mtos.theme:get_label('.1,2.3', "Player's objective: Join a team and ask what needs to be done, or mine and get geared up.")..
|
||||
mtos.theme:get_label('.1,2.7', 'Rules: See /rules ingame.')..
|
||||
mtos.theme:get_label('.1,3.1', 'Mods: See topic for server in your web browser. https://forum.minetest.net/viewtopic.php?f=10&t=14587')..
|
||||
mtos.theme:get_label('.1,3.5', 'Map:')..
|
||||
mtos.theme:get_button('.6,3.55;5,.5', 'url_bright', 'page_link', 'persistentkingdoms.servers.minetest/map')..
|
||||
mtos.theme:get_label('.1,3.9', 'Other Notes: Flags protect 64 blocks radius, in a sphere. Strict protocol checking is on, you will need Minetest 0.4.14 or newer to play.')..
|
||||
"image[1,5;10,5;laptop_pk.png]"
|
||||
return formspec
|
||||
end,
|
||||
receive_fields_func = function(app, mtos, sender, fields)
|
||||
laptop.browser_api.header_receive_fields_func(app, mtos, sender, fields)
|
||||
end
|
||||
})
|
||||
|
||||
laptop.register_view("persistentkingdoms.servers.minetest/map", {
|
||||
app_info = "Persistent Kingdoms Server Map",
|
||||
browser_page = true,
|
||||
formspec_func = function(app, mtos)
|
||||
local formspec = laptop.browser_api.header_formspec_func(app, mtos) ..
|
||||
"image[3.5,1.3;10,10;laptop_pk_map.png]"
|
||||
return formspec
|
||||
end,
|
||||
receive_fields_func = function(app, mtos, sender, fields)
|
||||
laptop.browser_api.header_receive_fields_func(app, mtos, sender, fields)
|
||||
end
|
||||
})
|
14
apps/browser_page_servers_app.lua
Normal file
14
apps/browser_page_servers_app.lua
Normal file
@ -0,0 +1,14 @@
|
||||
laptop.register_view("servers.minetest", {
|
||||
app_info = "Minetest Servers List",
|
||||
browser_page = true,
|
||||
browser_main_page = true,
|
||||
formspec_func = function(app, mtos)
|
||||
local formspec = laptop.browser_api.header_formspec_func(app, mtos) ..
|
||||
mtos.theme:get_label('.1,1.2', 'Persistent Kingdoms') ..
|
||||
mtos.theme:get_button('.1,1.7;4,.5', 'url_bright', 'page_link', 'persistentkingdoms.servers.minetest')
|
||||
return formspec
|
||||
end,
|
||||
receive_fields_func = function(app, mtos, sender, fields)
|
||||
laptop.browser_api.header_receive_fields_func(app, mtos, sender, fields)
|
||||
end
|
||||
})
|
15
apps/browser_page_test_app.lua
Normal file
15
apps/browser_page_test_app.lua
Normal file
@ -0,0 +1,15 @@
|
||||
laptop.register_view("test.official", {
|
||||
app_info = "In-Game Test",
|
||||
browser_page = true,
|
||||
formspec_func = function(app, mtos)
|
||||
local formspec = laptop.browser_api.header_formspec_func(app, mtos) ..
|
||||
mtos.theme:get_label('.3,1.1','Hello submitted World!')..
|
||||
mtos.theme:get_button('.1,1.7;2,.5', 'url_bright', 'page_link', 'link')..
|
||||
mtos.theme:get_image_button('.3,2.2;2,.8', 'toolbar', 'go_button', 'laptop_theme_basic_button.png', '', 'Go') ..
|
||||
"background[0,1.2;15,9;#000000]"
|
||||
return formspec
|
||||
end,
|
||||
receive_fields_func = function(app, mtos, sender, fields)
|
||||
laptop.browser_api.header_receive_fields_func(app, mtos, sender, fields)
|
||||
end
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user