commit
dd2d6c3120
|
@ -0,0 +1,96 @@
|
|||
-------------------------------------------
|
||||
-- Lord-Of-The-Test Site
|
||||
--------------------------------------------
|
||||
laptop.register_view("lott.web", {
|
||||
app_info = "Lord of the Test is an amazing minetest subgame!",
|
||||
browser_page = "true",
|
||||
browser_main_page = true,
|
||||
formspec_func = function(app, mtos)
|
||||
local formspec = laptop.browser_api.header_formspec_func(app, mtos) ..
|
||||
"background[0,1.2;15,9;laptop_lott_bg.png]" ..
|
||||
--Start Navigation
|
||||
"container[3,0;]" ..
|
||||
mtos.theme:get_button('0,1.1;3,1', 'url_bright', 'page_link', 'lott.web', 'Home') ..
|
||||
mtos.theme:get_button('3,1.1;3,1', 'url_bright', 'page_link', 'lott.web/about', 'About') ..
|
||||
mtos.theme:get_button('9,1.1;3,1', 'url_bright', 'page_link', 'lott.web/contact', 'Contact') ..
|
||||
"container_end[]" ..
|
||||
--End Navigation
|
||||
--Begin Page Content
|
||||
"image[3.7,2.5;10,2;laptop_lott_header.png]" ..
|
||||
mtos.theme:get_label('4,4.8', 'One Server for the Russians forever doomed to be outdated,') ..
|
||||
mtos.theme:get_label('4,5.1', 'One Server of oldcoder in the dark depths of minetest.org,') ..
|
||||
mtos.theme:get_label('4,5.4', 'One Server of enoch for which I cannot find a good verse,') ..
|
||||
mtos.theme:get_label('4,5.7', 'One for the dark lord amaz on his dark throne of code,') ..
|
||||
mtos.theme:get_label('4,6', 'In the land of gitlab vs github where the shadows lie,') ..
|
||||
mtos.theme:get_label('4,6.3', 'One server to rule them all, one server to find them,') ..
|
||||
mtos.theme:get_label('4, 6.6', 'One server to bring them all, and in the darkness bind them with awesome textures and bug fixes,') ..
|
||||
mtos.theme:get_label('4,6.9', 'In the land of minetest where the shadows lie.') ..
|
||||
mtos.theme:get_label('4,7.5', '-red 001') ..
|
||||
mtos.theme:get_label('4,7.8', '(Based on J.R.R. Tolkien, The Lord of the Rings)') ..
|
||||
return formspec
|
||||
end,
|
||||
receive_fields_func = function(app, mtos, sender, fields)
|
||||
laptop.browser_api.header_receive_fields_func(app, mtos, sender, fields)
|
||||
end
|
||||
})
|
||||
|
||||
--------------------------------------------
|
||||
-- About Page
|
||||
--------------------------------------------
|
||||
laptop.register_view("lott.web/about", {
|
||||
app_info = "About the Lord of the Test Game",
|
||||
browser_page = true,
|
||||
formspec_func = function(app, mtos)
|
||||
local formspec = laptop.browser_api.header_formspec_func(app, mtos) ..
|
||||
"background[0,1.2;15,9;laptop_lott_bg.png]"..
|
||||
--Start Navigation
|
||||
"container[3,0;]" ..
|
||||
mtos.theme:get_button('0,1.1;3,1', 'url_bright', 'page_link', 'lott.web', 'Home') ..
|
||||
mtos.theme:get_button('3,1.1;3,1', 'url_bright', 'page_link', 'lott.web/about', 'About') ..
|
||||
mtos.theme:get_button('9,1.1;3,1', 'url_bright', 'page_link', 'lott.web/contact', 'Contact') ..
|
||||
"container_end[]" ..
|
||||
--End Navigation
|
||||
--Begin Page Content
|
||||
mtos.theme:get_label('6, 2', 'About Lord of the Test') ..
|
||||
mtos.theme:get_label('1, 3', 'A shadow is creeping across the land, an unstoppable mist of evil. Sauron and his legions of orcs have returned, striving to') ..
|
||||
mtos.theme:get_label('1, 3.3', 'cleanse Middle-Earth of Elves, Dwarves, Hobbits, and Men. Everything has failed. Middle-Earth needs a leader, a new hope to') ..
|
||||
mtos.theme:get_label('1, 3.6', 'pierce the fog of evil that is descending on all. Only the truly brave, fearless, and noble can help. Will you dare to save the') ..
|
||||
mtos.theme:get_label('1, 3.9', 'world from the forces of destruction? Or will you lead the fierce orcs in their conquest of the world? The choice is open to all') ..
|
||||
mtos.theme:get_label('1, 4.2', 'brave enough to enter this epic new adventure.') ..
|
||||
mtos.theme:get_label('1, 4.8', 'Lord of the Test is an amazing Minetest subgame! It adds Lord of the Rings elements into the game. To learn more about this') ..
|
||||
mtos.theme:get_label('1, 5.1', 'exciting quest, study the wiki scroll. To embark, dowload the game on the forum or on github.') ..
|
||||
"bgcolor[#e2e2e2;false]"
|
||||
return formspec
|
||||
end,
|
||||
receive_fields_func = function(app, mtos, sender, fields)
|
||||
laptop.browser_api.header_receive_fields_func(app, mtos, sender, fields)
|
||||
end
|
||||
})
|
||||
|
||||
--------------------------------------------
|
||||
-- Contact Page
|
||||
--------------------------------------------
|
||||
laptop.register_view("lott.web/contact", {
|
||||
app_info = "Contact the Creators",
|
||||
browser_page = true,
|
||||
formspec_func = function(app, mtos)
|
||||
local formspec = laptop.browser_api.header_formspec_func(app, mtos) ..
|
||||
"background[0,1.2;15,9;laptop_lott_bg.png]"..
|
||||
--Start Navigation
|
||||
"container[3,0;]" ..
|
||||
mtos.theme:get_button('0,1.1;3,1', 'url_bright', 'page_link', 'lott.web', 'Home') ..
|
||||
mtos.theme:get_button('3,1.1;3,1', 'url_bright', 'page_link', 'lott.web/about', 'About') ..
|
||||
mtos.theme:get_button('9,1.1;3,1', 'url_bright', 'page_link', 'lott.web/contact', 'Contact') ..
|
||||
"container_end[]" ..
|
||||
--End Navigation
|
||||
--Begin Page Content
|
||||
mtos.theme:get_label('6, 2', 'Contact the Creators') ..
|
||||
mtos.theme:get_label('3, 4', 'Made by Amaz, fishyWet and lumidify') ..
|
||||
mtos.theme:get_label('3, 4.3', 'Check out our Github page at https://github.com/minetest-LOTR/Lord-of-the-Test') ..
|
||||
mtos.theme:get_label('3, 4.6', 'Or, contact us on the IRC at #lordofthetest on irc.freenode.net')
|
||||
return formspec
|
||||
end,
|
||||
receive_fields_func = function(app, mtos, sender, fields)
|
||||
laptop.browser_api.header_receive_fields_func(app, mtos, sender, fields)
|
||||
end
|
||||
})
|
|
@ -0,0 +1,129 @@
|
|||
--------------------------------------------
|
||||
-- Minetest Wiki
|
||||
--------------------------------------------
|
||||
laptop.register_view("minetest.wiki", {
|
||||
app_info = "Copy of the Minetest Wiki",
|
||||
browser_page = true,
|
||||
browser_main_page = true,
|
||||
formspec_func = function(app, mtos)
|
||||
local formspec = laptop.browser_api.header_formspec_func(app, mtos) ..
|
||||
--Begin Navigation
|
||||
"image[.1,1.2;2,2;laptop_minetest_logo.png]" ..
|
||||
mtos.theme:get_label('2, 1.2', 'Welcome to the Minetest Wiki') ..
|
||||
mtos.theme:get_button('.1,3.5;2,.4', 'url_bright', 'page_link', 'minetest.wiki', 'Home') ..
|
||||
mtos.theme:get_button('.1,4;3,.4', 'url_bright', 'page_link', 'minetest.wiki/getting_started', 'Getting Started') ..
|
||||
mtos.theme:get_button('.1,4.5;3,.4', 'url_bright', 'page_link', 'minetest.wiki/blocks', 'Blocks') ..
|
||||
--End Navigation
|
||||
--Begin page content
|
||||
"container[4,0;]" ..
|
||||
mtos.theme:get_label('0.2,2.2', 'About Minetest') ..
|
||||
mtos.theme:get_label('0,3', 'Minetest is a sandbox construction game, created by Perttu Ahola (alias “celeron55”)') ..
|
||||
mtos.theme:get_label('0,3.3', 'in year 2010, inspired by Infiniminer, Minecraft and similar games.') ..
|
||||
mtos.theme:get_label('0,3.8', 'The gameplay is very similar to Minecrafts, so players can create and destroy various') ..
|
||||
mtos.theme:get_label('0,4.1', 'types of blocks in a three-dimensional open world. This allows forming structures') ..
|
||||
mtos.theme:get_label('0,4.4', 'in every possible creation, on multiplayer servers or as singleplayer. An increasing') ..
|
||||
mtos.theme:get_label('0,4.7', 'number of Mods and Texture Packs allow players to personalize the game in different ways.') ..
|
||||
mtos.theme:get_label('0,5.2', 'Minetest is Free and Open Source Software, released under the GNU Lesser General Public License (LGPLv2.1') ..
|
||||
mtos.theme:get_label('0,5.5', 'or later). This allows the better support by community and an static improvement of the game.') ..
|
||||
mtos.theme:get_label('0,6', 'Minetest is Free and Open Source Software, released under the GNU') ..
|
||||
mtos.theme:get_label('0,6.3', 'Lesser General Public License (LGPLv2.1 or later). This allows the better support by') ..
|
||||
mtos.theme:get_label('0,6.6', 'community and an static improvement of the game.') ..
|
||||
mtos.theme:get_label('0,7', 'The following pages are available:') ..
|
||||
mtos.theme:get_button('3,7.4;4,.4', 'url_bright', 'page_link', 'minetest.wiki/getting_started', 'Getting Started') ..
|
||||
mtos.theme:get_label('0,8', 'To contribute, contact b3u on the minetest forums.') ..
|
||||
"container_end[]" ..
|
||||
"background[0,1.2;15,9;laptop_minetest_background.png;]"
|
||||
return formspec
|
||||
end,
|
||||
receive_fields_func = function(app, mtos, sender, fields)
|
||||
laptop.browser_api.header_receive_fields_func(app, mtos, sender, fields)
|
||||
end
|
||||
})
|
||||
|
||||
--------------------------------------------
|
||||
-- Getting Started Page
|
||||
--------------------------------------------
|
||||
laptop.register_view("minetest.wiki/getting_started", {
|
||||
app_info = "Getting started with Minetest",
|
||||
browser_page = true,
|
||||
formspec_func = function(app, mtos)
|
||||
local formspec = laptop.browser_api.header_formspec_func(app, mtos) ..
|
||||
--Begin Navigation
|
||||
"background[0,1.2;15,9;laptop_minetest_background.png;]" ..
|
||||
"image[.1,1.2;2,2;laptop_minetest_logo.png]" ..
|
||||
mtos.theme:get_label('2, 1.2', 'Welcome to the Minetest Wiki') ..
|
||||
mtos.theme:get_button('.1,3.5;2,.4', 'url_bright', 'page_link', 'minetest.wiki', 'Home') ..
|
||||
mtos.theme:get_button('.1,4;3,.4', 'url_bright', 'page_link', 'minetest.wiki/getting_started', 'Getting Started') ..
|
||||
mtos.theme:get_button('.1,4.5;3,.4', 'url_bright', 'page_link', 'minetest.wiki/blocks', 'Blocks') ..
|
||||
--End Navigation
|
||||
--Begin page content
|
||||
"container[4,0]" ..
|
||||
mtos.theme:get_label('0.2,2.2', 'Getting Started') ..
|
||||
mtos.theme:get_label('0,2.8', 'Welcome to Minetest! This page explains what Minetest is all about, how to get it,') ..
|
||||
mtos.theme:get_label('0,3', 'and how to start playing your first games alone or online.') ..
|
||||
"container_end[]"
|
||||
return formspec
|
||||
end,
|
||||
receive_fields_func = function(app, mtos, sender, fields)
|
||||
laptop.browser_api.header_receive_fields_func(app, mtos, sender, fields)
|
||||
end
|
||||
})
|
||||
|
||||
--------------------------------------------
|
||||
-- Blocks Page
|
||||
--------------------------------------------
|
||||
laptop.register_view("minetest.wiki/blocks", {
|
||||
app_info = "Minetest Wiki Template Page",
|
||||
browser_page = true,
|
||||
formspec_func = function(app, mtos)
|
||||
local formspec = laptop.browser_api.header_formspec_func(app, mtos) ..
|
||||
--Begin Navigation
|
||||
"background[0,1.2;15,9;laptop_minetest_background.png;]" ..
|
||||
"image[.1,1.2;2,2;laptop_minetest_logo.png]" ..
|
||||
mtos.theme:get_label('2, 1.2', 'Welcome to the Minetest Wiki') ..
|
||||
mtos.theme:get_button('.1,3.5;2,.4', 'url_bright', 'page_link', 'minetest.wiki', 'Home') ..
|
||||
mtos.theme:get_button('.1,4;3,.4', 'url_bright', 'page_link', 'minetest.wiki/getting_started', 'Getting Started') ..
|
||||
mtos.theme:get_button('.1,4.5;3,.4', 'url_bright', 'page_link', 'minetest.wiki/blocks', 'Blocks') ..
|
||||
--End Navigation
|
||||
--Begin page content
|
||||
"container[4,0]" ..
|
||||
mtos.theme:get_label('0.2,2.2', 'Blocks') ..
|
||||
mtos.theme:get_label('0,2.8', 'Blocks are the building blocks in Minetest. They have 16×16 textures and are seen') ..
|
||||
mtos.theme:get_label('0,3.1', 'by the player as one cubic meter. Blocks are also called Nodes in Minetest, which is relevant') ..
|
||||
mtos.theme:get_label('0,3.4', 'to Modding. This page lists the available blocks in Minetest Game.') ..
|
||||
mtos.theme:get_label('3, 4.4', 'Naturally generated blocks') ..
|
||||
"container_end[]"
|
||||
return formspec
|
||||
end,
|
||||
receive_fields_func = function(app, mtos, sender, fields)
|
||||
laptop.browser_api.header_receive_fields_func(app, mtos, sender, fields)
|
||||
end
|
||||
})
|
||||
|
||||
--------------------------------------------
|
||||
-- Template Page
|
||||
--------------------------------------------
|
||||
laptop.register_view("minetest.wiki/template", {
|
||||
app_info = "Minetest Wiki Template Page",
|
||||
browser_page = true,
|
||||
formspec_func = function(app, mtos)
|
||||
local formspec = laptop.browser_api.header_formspec_func(app, mtos) ..
|
||||
--Begin Navigation
|
||||
"background[0,1.2;15,9;laptop_minetest_background.png;]" ..
|
||||
"image[.1,1.2;2,2;laptop_minetest_logo.png]" ..
|
||||
mtos.theme:get_label('2, 1.2', 'Welcome to the Minetest Wiki') ..
|
||||
mtos.theme:get_button('.1,3.5;2,.4', 'url_bright', 'page_link', 'minetest.wiki', 'Home') ..
|
||||
mtos.theme:get_button('.1,4;3,.4', 'url_bright', 'page_link', 'minetest.wiki/getting_started', 'Getting Started') ..
|
||||
mtos.theme:get_button('.1,4.5;3,.4', 'url_bright', 'page_link', 'minetest.wiki/blocks', 'Blocks') ..
|
||||
--End Navigation
|
||||
--Begin page content
|
||||
"container[4,0]" ..
|
||||
mtos.theme:get_label('0.2,2.2', 'Template') ..
|
||||
mtos.theme:get_label('0,2.8', 'Text goes here') ..
|
||||
"container_end[]"
|
||||
return formspec
|
||||
end,
|
||||
receive_fields_func = function(app, mtos, sender, fields)
|
||||
laptop.browser_api.header_receive_fields_func(app, mtos, sender, fields)
|
||||
end
|
||||
})
|
Loading…
Reference in New Issue