mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 12:34:05 +09:00
fixed bad color rendering on blocksdrawer and lightmaprenderer
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package net.torvald.terrarum.console
|
||||
|
||||
import net.torvald.terrarum.ccW
|
||||
import net.torvald.terrarum.langpack.Lang
|
||||
|
||||
import java.util.Formatter
|
||||
@@ -9,8 +10,6 @@ import java.util.Formatter
|
||||
*/
|
||||
internal object CodexEdictis : ConsoleCommand {
|
||||
|
||||
val ccW = 0.toChar()//GameFontBase.colToCode["o"]
|
||||
|
||||
override fun execute(args: Array<String>) {
|
||||
if (args.size == 1) {
|
||||
printList()
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package net.torvald.terrarum.console
|
||||
|
||||
import net.torvald.terrarum.*
|
||||
import net.torvald.terrarum.langpack.Lang
|
||||
import java.time.ZonedDateTime
|
||||
|
||||
import java.util.ArrayList
|
||||
import java.util.Formatter
|
||||
import java.util.regex.Pattern
|
||||
@@ -23,11 +23,6 @@ internal object CommandInterpreter {
|
||||
"tips"
|
||||
)
|
||||
|
||||
private val ccW = 0.toChar()//GameFontBase.colToCode["w"]
|
||||
private val ccG = 0.toChar()//GameFontBase.colToCode["g"]
|
||||
private val ccY = 0.toChar()//GameFontBase.colToCode["y"]
|
||||
private val ccR = 0.toChar()//GameFontBase.colToCode["r"]
|
||||
|
||||
internal fun execute(command: String) {
|
||||
val cmd: Array<CommandInput?> = parse(command)
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package net.torvald.terrarum.console
|
||||
|
||||
import net.torvald.terrarum.*
|
||||
import net.torvald.terrarum.TerrarumGDX
|
||||
|
||||
/**
|
||||
@@ -7,13 +8,6 @@ import net.torvald.terrarum.TerrarumGDX
|
||||
*/
|
||||
internal object GetAV : ConsoleCommand {
|
||||
|
||||
val ccW = 0.toChar()//GameFontBase.colToCode["w"]
|
||||
val ccG = 0.toChar()//GameFontBase.colToCode["g"]
|
||||
val ccY = 0.toChar()//GameFontBase.colToCode["y"]
|
||||
val ccM = 0.toChar()//GameFontBase.colToCode["m"]
|
||||
val ccK = 0.toChar()//GameFontBase.colToCode["k"]
|
||||
val ccO = 0.toChar()//GameFontBase.colToCode["o"]
|
||||
|
||||
override fun execute(args: Array<String>) {
|
||||
try {
|
||||
if (args.size == 1 && TerrarumGDX.ingame!!.player != null) {
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
package net.torvald.terrarum.console
|
||||
|
||||
import net.torvald.terrarum.*
|
||||
import net.torvald.terrarum.TerrarumGDX
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 16-06-16.
|
||||
*/
|
||||
internal object Seed : ConsoleCommand {
|
||||
val ccG = 0.toChar()//GameFontBase.colToCode["g"]
|
||||
val ccW = 0.toChar()//GameFontBase.colToCode["w"]
|
||||
val ccY = 0.toChar()//GameFontBase.colToCode["y"]
|
||||
|
||||
override fun execute(args: Array<String>) {
|
||||
Echo("Map$ccW: $ccG${TerrarumGDX.ingame!!.world.generatorSeed}")
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package net.torvald.terrarum.console
|
||||
|
||||
import net.torvald.terrarum.*
|
||||
import net.torvald.terrarum.TerrarumGDX
|
||||
|
||||
/**
|
||||
@@ -7,12 +8,6 @@ import net.torvald.terrarum.TerrarumGDX
|
||||
*/
|
||||
internal object SetAV : ConsoleCommand {
|
||||
|
||||
val ccW = 0.toChar()//GameFontBase.colToCode["w"]
|
||||
val ccG = 0.toChar()//GameFontBase.colToCode["g"]
|
||||
val ccY = 0.toChar()//GameFontBase.colToCode["y"]
|
||||
val ccR = 0.toChar()//GameFontBase.colToCode["r"]
|
||||
val ccM = 0.toChar()//GameFontBase.colToCode["m"]
|
||||
|
||||
override fun printUsage() {
|
||||
Echo("${ccW}Set actor value of specific target to desired value.")
|
||||
Echo("${ccW}Usage: ${ccY}setav ${ccG}(id) <av> <val>")
|
||||
|
||||
Reference in New Issue
Block a user