mirror of
https://github.com/GTNewHorizons/BetterP2P.git
synced 2026-10-26 14:24:05 +00:00
Make more Memory Card UI strings translatable (#38)
(cherry picked from commit 47550d07df)
This commit is contained in:
1 parent
383ed2bfc2
commit
edaafbb38a
3 files changed
+6
-10
No files matched your search
@@ -415,7 +415,7 @@ class GuiAdvancedMemoryCard(msg: S2COpenGui) : GuiScreen(), TextureBound {
|
||||
drawDefaultBackground()
|
||||
drawBackground()
|
||||
// Draw the stuff that resets GL state first
|
||||
fontRendererObj.drawString(I18n.format("item.advanced_memory_card.name"), guiLeft + tableX, guiTop + 6, 0)
|
||||
fontRendererObj.drawString(I18n.format("item.advanced_memory_card.name.gui"), guiLeft + tableX, guiTop + 6, 0)
|
||||
searchBar.drawTextBox()
|
||||
buttonList.forEach { it as WidgetButton
|
||||
it.draw(mc, mouseX, mouseY, partialTicks)
|
||||
|
||||
@@ -76,15 +76,9 @@ class InfoWrapper(info: P2PInfo) {
|
||||
val p2pType: ClientTunnelInfo = BetterP2P.proxy.getP2PFromIndex(info.type) as ClientTunnelInfo
|
||||
icon = p2pType.icon()
|
||||
overlay = p2pType.stack.iconIndex
|
||||
description = buildString {
|
||||
append("Type: ")
|
||||
append(p2pType.dispName)
|
||||
append(" - ")
|
||||
if (output)
|
||||
append(I18n.format("gui.advanced_memory_card.p2p_status.output"))
|
||||
else
|
||||
append(I18n.format("gui.advanced_memory_card.p2p_status.input"))
|
||||
}
|
||||
description = I18n.format("gui.advanced_memory_card.p2p_status.type", p2pType.dispName,
|
||||
if (output) I18n.format("gui.advanced_memory_card.p2p_status.output")
|
||||
else I18n.format("gui.advanced_memory_card.p2p_status.input"))
|
||||
val online = info.hasChannel
|
||||
hoverInfo = mutableListOf(
|
||||
"§bP2P - ${p2pType.dispName}",
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
item.advanced_memory_card.name=Advanced Memory Card
|
||||
item.advanced_memory_card.name.gui=Advanced Memory Card
|
||||
item.advanced_memory_card.selected=Frequency:
|
||||
gui.advanced_memory_card.select=Select
|
||||
gui.advanced_memory_card.bind=Bind
|
||||
@@ -39,6 +40,7 @@ gui.advanced_memory_card.gui_scale.large=Current Size: Large
|
||||
gui.advanced_memory_card.gui_scale.dynamic=Current Size: Automatic
|
||||
gui.advanced_memory_card.p2p_status.bound=Bound
|
||||
gui.advanced_memory_card.p2p_status.unbound=Unbound
|
||||
gui.advanced_memory_card.p2p_status.type=Type: %s - %s
|
||||
gui.advanced_memory_card.p2p_status.input=Input
|
||||
gui.advanced_memory_card.p2p_status.output=Output
|
||||
gui.advanced_memory_card.p2p_status.offline=Offline
|
||||
|
||||
Reference in new issue
Block a user