New translation lines
This commit is contained in:
parent
53e5dd38b2
commit
b68215a710
8 changed files with 41 additions and 7 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
[gd_resource type="Resource" script_class="Menu" load_steps=4 format=3 uid="uid://cbvax7aprnrig"]
|
[gd_resource type="Resource" script_class="Menu" load_steps=11 format=3 uid="uid://cbvax7aprnrig"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://scripts/Classes/Menu/combo_menu_resource.gd" id="1_erxhv"]
|
[ext_resource type="Script" path="res://scripts/Classes/Menu/combo_menu_resource.gd" id="1_erxhv"]
|
||||||
|
[ext_resource type="Script" path="res://scripts/Classes/Menu/menu_menu_resource.gd" id="2_j0wms"]
|
||||||
[ext_resource type="Script" path="res://scripts/Classes/Menu/menu.gd" id="2_ppqjr"]
|
[ext_resource type="Script" path="res://scripts/Classes/Menu/menu.gd" id="2_ppqjr"]
|
||||||
|
|
||||||
[sub_resource type="Resource" id="Resource_5pmle"]
|
[sub_resource type="Resource" id="Resource_5pmle"]
|
||||||
|
|
@ -8,8 +9,32 @@ script = ExtResource("1_erxhv")
|
||||||
item_script = &"res://scripts/Base/Menu/send_message.gd"
|
item_script = &"res://scripts/Base/Menu/send_message.gd"
|
||||||
item_menu = &"res://menus/Base Menu/root_menu.tres"
|
item_menu = &"res://menus/Base Menu/root_menu.tres"
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_nld04"]
|
||||||
|
script = ExtResource("2_j0wms")
|
||||||
|
item = &"res://menus/Base Menu/BuySell/menu_buy_sell_amount.tres"
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_skkl2"]
|
||||||
|
script = ExtResource("2_j0wms")
|
||||||
|
item = &"res://menus/Base Menu/BuySell/menu_buy_sell_amount.tres"
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_mavao"]
|
||||||
|
script = ExtResource("2_j0wms")
|
||||||
|
item = &"res://menus/Base Menu/BuySell/menu_buy_sell_amount.tres"
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_h23aj"]
|
||||||
|
script = ExtResource("2_j0wms")
|
||||||
|
item = &"res://menus/Base Menu/BuySell/menu_buy_sell_amount.tres"
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_ncvbu"]
|
||||||
|
script = ExtResource("2_j0wms")
|
||||||
|
item = &"res://menus/Base Menu/BuySell/menu_buy_sell_amount.tres"
|
||||||
|
|
||||||
|
[sub_resource type="Resource" id="Resource_n2hk8"]
|
||||||
|
script = ExtResource("2_j0wms")
|
||||||
|
item = &"res://menus/Base Menu/BuySell/menu_buy_sell_amount.tres"
|
||||||
|
|
||||||
[resource]
|
[resource]
|
||||||
script = ExtResource("2_ppqjr")
|
script = ExtResource("2_ppqjr")
|
||||||
item_ids = Array[String](["BASE_FETCH_BUY_SELL_CANCEL", "BASE_BUY_SELL", "BASE_BUY_SELL", "BASE_BUY_SELL", "BASE_BUY_SELL", "BASE_BUY_SELL", "BASE_BUY_SELL", "BASE_BUY_SELL_NEXT"])
|
item_ids = Array[String](["BASE_FETCH_BUY_SELL_CANCEL", "BASE_BUY_SELL", "BASE_BUY_SELL", "BASE_BUY_SELL", "BASE_BUY_SELL", "BASE_BUY_SELL", "BASE_BUY_SELL", "BASE_BUY_SELL_NEXT"])
|
||||||
item_actions = Array[int]([3, 0, 0, 0, 0, 0, 0, 0])
|
item_actions = Array[int]([3, 1, 1, 1, 1, 1, 1, 0])
|
||||||
item_data = Array[Resource("res://scripts/Classes/Menu/menu_resource.gd")]([SubResource("Resource_5pmle"), null, null, null, null, null, null, null])
|
item_data = Array[Resource("res://scripts/Classes/Menu/menu_resource.gd")]([SubResource("Resource_5pmle"), SubResource("Resource_nld04"), SubResource("Resource_skkl2"), SubResource("Resource_mavao"), SubResource("Resource_h23aj"), SubResource("Resource_ncvbu"), SubResource("Resource_n2hk8"), null])
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,14 @@ class_name MessageSenderAction
|
||||||
var dialogue
|
var dialogue
|
||||||
## Message which will be send on click
|
## Message which will be send on click
|
||||||
var msg: Message
|
var msg: Message
|
||||||
|
## Additional formatting which can be applied by menu
|
||||||
|
var format = {}
|
||||||
|
|
||||||
## Gets message and translates it on display.
|
## Gets message and translates it on display.
|
||||||
## Shown message should end with _LOCAL
|
## Shown message should end with _LOCAL
|
||||||
func _ready():
|
func _ready():
|
||||||
var item_id = get_parent().menu.item_ids[id]
|
var item_id = get_parent().menu.item_ids[id]
|
||||||
msg = Message.create(item_id, tr(item_id + "_LOCAL"))
|
msg = Message.create(item_id, tr(item_id + "_LOCAL").format(format))
|
||||||
text = msg.shown
|
text = msg.shown
|
||||||
super._ready()
|
super._ready()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,6 @@ func load_menu():
|
||||||
format["item_id"] = i + buy_sell_tab * 6
|
format["item_id"] = i + buy_sell_tab * 6
|
||||||
format["item_name"] = tr(list[i - 1 + buy_sell_tab * 6].name)
|
format["item_name"] = tr(list[i - 1 + buy_sell_tab * 6].name)
|
||||||
menu.item_ids[i] = BUY_SELL_ITEM
|
menu.item_ids[i] = BUY_SELL_ITEM
|
||||||
|
|
||||||
# disconnect previous action
|
# disconnect previous action
|
||||||
if actions[i] is TransitButton:
|
if actions[i] is TransitButton:
|
||||||
actions[i].button_up.disconnect(transit_menu)
|
actions[i].button_up.disconnect(transit_menu)
|
||||||
|
|
@ -69,6 +68,8 @@ func load_menu():
|
||||||
actions[i].set_script(menu.item_data[i].load_script())
|
actions[i].set_script(menu.item_data[i].load_script())
|
||||||
Menu.Action.ComboAction:
|
Menu.Action.ComboAction:
|
||||||
actions[i].set_script(menu.item_data[i].load_script())
|
actions[i].set_script(menu.item_data[i].load_script())
|
||||||
|
if "format" in actions[i]:
|
||||||
|
actions[i].format = format
|
||||||
if "id" in actions[i]:
|
if "id" in actions[i]:
|
||||||
actions[i].id = i
|
actions[i].id = i
|
||||||
if "dialogue" in actions[i]:
|
if "dialogue" in actions[i]:
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,8 @@ var money: float = 1000.0
|
||||||
## Base which was requested to dock last
|
## Base which was requested to dock last
|
||||||
var docking_base: Base = null
|
var docking_base: Base = null
|
||||||
|
|
||||||
|
var cargo = {}
|
||||||
|
|
||||||
func destroy():
|
func destroy():
|
||||||
super.destroy()
|
super.destroy()
|
||||||
if docking_base != null:
|
if docking_base != null:
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,18 @@ DIALOGUE_ENTRY_POINT,Entering chat with {race}...\nLogged in as {profile_name}.\
|
||||||
BASE_TEST_MESSAGE_LOCAL,Greet,Поприветствовать
|
BASE_TEST_MESSAGE_LOCAL,Greet,Поприветствовать
|
||||||
BASE_TEST_MESSAGE_RECEIVED,"Hello, gryadki!\nBye, ponos!\n> ","Хеллоу, грядки!\nБай, понос!\n> "
|
BASE_TEST_MESSAGE_RECEIVED,"Hello, gryadki!\nBye, ponos!\n> ","Хеллоу, грядки!\nБай, понос!\n> "
|
||||||
BASE_FETCH_BUY_LOCAL,"Ask, what they sell","Спросить, что они продают"
|
BASE_FETCH_BUY_LOCAL,"Ask, what they sell","Спросить, что они продают"
|
||||||
BASE_FETCH_BUY_RECEIVED,I would like to buy something\nWe are selling:\n[ol]{sell_list}[/ol]\n> ,Я бы хотел что-нибудь купить\nМы продаём:\n[ol]{sell_list}[/ol]\n>
|
BASE_FETCH_BUY_RECEIVED,I would like to buy something\nWe are selling:\n[ol]{sell_list}[/ol]\n,Я бы хотел что-нибудь купить\nМы продаём:\n[ol]{sell_list}[/ol]\n
|
||||||
BASE_FETCH_SELL_LOCAL,"Ask, what they buy","Спросить, что они покупают"
|
BASE_FETCH_SELL_LOCAL,"Ask, what they buy","Спросить, что они покупают"
|
||||||
BASE_FETCH_SELL_RECEIVED,I have some items to sell\nWe can buy:\n[ol]{buy_list}[/ol]\n> ,У меня есть кое-что на продажу\nМы готовы купить:\n[ol]{buy_list}[/ol]\n>
|
BASE_FETCH_SELL_RECEIVED,I have some items to sell\nWe can buy:\n[ol]{buy_list}[/ol]\n,У меня есть кое-что на продажу\nМы готовы купить:\n[ol]{buy_list}[/ol]\n
|
||||||
BASE_FETCH_PRICE_ITEM,[img=26x26]{item_img}[/img]{item_name} — {item_price},[img=26x26]{item_img}[/img]{item_name} — {item_price}
|
BASE_FETCH_PRICE_ITEM,[img=26x26]{item_img}[/img]{item_name} — {item_price},[img=26x26]{item_img}[/img]{item_name} — {item_price}
|
||||||
BASE_FETCH_BUY_SELL_CANCEL_LOCAL,Buy nothing,Ничего не покупать
|
BASE_FETCH_BUY_SELL_CANCEL_LOCAL,Buy nothing,Ничего не покупать
|
||||||
BASE_FETCH_BUY_SELL_CANCEL_RECEIVED,I changed my mind\nErm...Fine...\nAnything else?\n> ,Я передумал\nЧто ж...Ладно...\nЧто-то ещё?\n>
|
BASE_FETCH_BUY_SELL_CANCEL_RECEIVED,I changed my mind\nErm...Fine...\nAnything else?\n> ,Я передумал\nЧто ж...Ладно...\nЧто-то ещё?\n>
|
||||||
BASE_BUY_SELL, ,
|
BASE_BUY_SELL, ,
|
||||||
BASE_BUY_SELL_NEXT,Next tab,Следующая вкладка
|
BASE_BUY_SELL_NEXT,Next tab,Следующая вкладка
|
||||||
BASE_BUY_SELL_PREV,Previous tab,Предыдущая вкладка
|
BASE_BUY_SELL_PREV,Previous tab,Предыдущая вкладка
|
||||||
|
BASE_BUY_ITEM_LOCAL,Buy {amount}x{item_name} ({total_price}),Купить {amount}x{item_name} ({total_price})
|
||||||
|
BASE_BUY_ITEM_RECEIVED,"[BOUGHT {amount}x{item_name}]\nThanks, anything else?\n> ","[КУПЛЕНО {amount}x{item_name}]\nСпасибо, что-то ещё?\n> "
|
||||||
|
BASE_SELL_ITEM_LOCAL,Sell {amount}x{item_name} ({total_price}),Продать {amount}x{item_name} ({total_price})
|
||||||
|
BASE_SELL_ITEM_RECEIVED,"[SOLD {amount}x{item_name}]\nThanks, anything else?\n> ","[ПРОДАНО {amount}x{item_name}]\nСпасибо, что-то ещё?\n> "
|
||||||
BUY_SELL_ITEM,{item_id}. {item_name},{item_id}. {item_name}
|
BUY_SELL_ITEM,{item_id}. {item_name},{item_id}. {item_name}
|
||||||
NULL, ,
|
NULL, ,
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue