add darvo stock multiplier to webui
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (pull_request) Successful in 56s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (pull_request) Successful in 56s
				
			This commit is contained in:
		
							parent
							
								
									29428ff9a8
								
							
						
					
					
						commit
						a75f7e0a5b
					
				@ -903,6 +903,13 @@
 | 
				
			|||||||
                                        <button class="btn btn-primary" type="submit" data-loc="cheats_save"></button>
 | 
					                                        <button class="btn btn-primary" type="submit" data-loc="cheats_save"></button>
 | 
				
			||||||
                                    </div>
 | 
					                                    </div>
 | 
				
			||||||
                                </form>
 | 
					                                </form>
 | 
				
			||||||
 | 
					                                <form class="form-group mt-2" onsubmit="doSaveConfigFloat('worldState.darvoStockMultiplier'); return false;">
 | 
				
			||||||
 | 
					                                    <label class="form-label" for="worldState.circuitGameModes" data-loc="worldState_darvoStockMultiplier"></label>
 | 
				
			||||||
 | 
					                                    <div class="input-group">
 | 
				
			||||||
 | 
					                                        <input id="worldState.darvoStockMultiplier" class="form-control" type="number" step="0.01" placeholder="1" />
 | 
				
			||||||
 | 
					                                        <button class="btn btn-primary" type="submit" data-loc="cheats_save"></button>
 | 
				
			||||||
 | 
					                                    </div>
 | 
				
			||||||
 | 
					                                </form>
 | 
				
			||||||
                            </div>
 | 
					                            </div>
 | 
				
			||||||
                        </div>
 | 
					                        </div>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
 | 
				
			|||||||
@ -1892,6 +1892,16 @@ function doSaveConfigInt(id) {
 | 
				
			|||||||
    });
 | 
					    });
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function doSaveConfigFloat(id) {
 | 
				
			||||||
 | 
					    $.post({
 | 
				
			||||||
 | 
					        url: "/custom/setConfig?" + window.authz + "&wsid=" + wsid,
 | 
				
			||||||
 | 
					        contentType: "application/json",
 | 
				
			||||||
 | 
					        data: JSON.stringify({
 | 
				
			||||||
 | 
					            [id]: parseFloat(document.getElementById(id).value)
 | 
				
			||||||
 | 
					        })
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function doSaveConfigStringArray(id) {
 | 
					function doSaveConfigStringArray(id) {
 | 
				
			||||||
    $.post({
 | 
					    $.post({
 | 
				
			||||||
        url: "/custom/setConfig?" + window.authz + "&wsid=" + wsid,
 | 
					        url: "/custom/setConfig?" + window.authz + "&wsid=" + wsid,
 | 
				
			||||||
@ -1928,8 +1938,6 @@ single.getRoute("/webui/cheats").on("beforeload", function () {
 | 
				
			|||||||
                        if (x != null) {
 | 
					                        if (x != null) {
 | 
				
			||||||
                            if (x.type == "checkbox") {
 | 
					                            if (x.type == "checkbox") {
 | 
				
			||||||
                                x.checked = value;
 | 
					                                x.checked = value;
 | 
				
			||||||
                            } else if (x.type == "number") {
 | 
					 | 
				
			||||||
                                x.setAttribute("value", value);
 | 
					 | 
				
			||||||
                            } else if (x.classList.contains("tags-input")) {
 | 
					                            } else if (x.classList.contains("tags-input")) {
 | 
				
			||||||
                                x.value = value.join(", ");
 | 
					                                x.value = value.join(", ");
 | 
				
			||||||
                                x.oninput();
 | 
					                                x.oninput();
 | 
				
			||||||
 | 
				
			|||||||
@ -232,6 +232,7 @@ dict = {
 | 
				
			|||||||
    worldState_allAtOnceNormal: `[UNTRANSLATED] All At Once, Normal`,
 | 
					    worldState_allAtOnceNormal: `[UNTRANSLATED] All At Once, Normal`,
 | 
				
			||||||
    worldState_allAtOnceSteelPath: `[UNTRANSLATED] All At Once, Steel Path`,
 | 
					    worldState_allAtOnceSteelPath: `[UNTRANSLATED] All At Once, Steel Path`,
 | 
				
			||||||
    worldState_theCircuitOverride: `[UNTRANSLATED] The Circuit Override`,
 | 
					    worldState_theCircuitOverride: `[UNTRANSLATED] The Circuit Override`,
 | 
				
			||||||
 | 
					    worldState_darvoStockMultiplier: `[UNTRANSLATED] Darvo Stock Multiplier`,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    import_importNote: `Du kannst hier eine vollständige oder teilweise Inventarantwort (Client-Darstellung) einfügen. Alle Felder, die vom Importer unterstützt werden, <b>werden in deinem Account überschrieben</b>.`,
 | 
					    import_importNote: `Du kannst hier eine vollständige oder teilweise Inventarantwort (Client-Darstellung) einfügen. Alle Felder, die vom Importer unterstützt werden, <b>werden in deinem Account überschrieben</b>.`,
 | 
				
			||||||
    import_submit: `Absenden`,
 | 
					    import_submit: `Absenden`,
 | 
				
			||||||
 | 
				
			|||||||
@ -231,6 +231,7 @@ dict = {
 | 
				
			|||||||
    worldState_allAtOnceNormal: `All At Once, Normal`,
 | 
					    worldState_allAtOnceNormal: `All At Once, Normal`,
 | 
				
			||||||
    worldState_allAtOnceSteelPath: `All At Once, Steel Path`,
 | 
					    worldState_allAtOnceSteelPath: `All At Once, Steel Path`,
 | 
				
			||||||
    worldState_theCircuitOverride: `The Circuit Override`,
 | 
					    worldState_theCircuitOverride: `The Circuit Override`,
 | 
				
			||||||
 | 
					    worldState_darvoStockMultiplier: `Darvo Stock Multiplier`,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    import_importNote: `You can provide a full or partial inventory response (client respresentation) here. All fields that are supported by the importer <b>will be overwritten</b> in your account.`,
 | 
					    import_importNote: `You can provide a full or partial inventory response (client respresentation) here. All fields that are supported by the importer <b>will be overwritten</b> in your account.`,
 | 
				
			||||||
    import_submit: `Submit`,
 | 
					    import_submit: `Submit`,
 | 
				
			||||||
 | 
				
			|||||||
@ -232,6 +232,7 @@ dict = {
 | 
				
			|||||||
    worldState_allAtOnceNormal: `[UNTRANSLATED] All At Once, Normal`,
 | 
					    worldState_allAtOnceNormal: `[UNTRANSLATED] All At Once, Normal`,
 | 
				
			||||||
    worldState_allAtOnceSteelPath: `[UNTRANSLATED] All At Once, Steel Path`,
 | 
					    worldState_allAtOnceSteelPath: `[UNTRANSLATED] All At Once, Steel Path`,
 | 
				
			||||||
    worldState_theCircuitOverride: `[UNTRANSLATED] The Circuit Override`,
 | 
					    worldState_theCircuitOverride: `[UNTRANSLATED] The Circuit Override`,
 | 
				
			||||||
 | 
					    worldState_darvoStockMultiplier: `[UNTRANSLATED] Darvo Stock Multiplier`,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    import_importNote: `Puedes proporcionar una respuesta de inventario completa o parcial (representación del cliente) aquí. Todos los campos compatibles con el importador <b>serán sobrescritos</b> en tu cuenta.`,
 | 
					    import_importNote: `Puedes proporcionar una respuesta de inventario completa o parcial (representación del cliente) aquí. Todos los campos compatibles con el importador <b>serán sobrescritos</b> en tu cuenta.`,
 | 
				
			||||||
    import_submit: `Enviar`,
 | 
					    import_submit: `Enviar`,
 | 
				
			||||||
 | 
				
			|||||||
@ -232,6 +232,7 @@ dict = {
 | 
				
			|||||||
    worldState_allAtOnceNormal: `[UNTRANSLATED] All At Once, Normal`,
 | 
					    worldState_allAtOnceNormal: `[UNTRANSLATED] All At Once, Normal`,
 | 
				
			||||||
    worldState_allAtOnceSteelPath: `[UNTRANSLATED] All At Once, Steel Path`,
 | 
					    worldState_allAtOnceSteelPath: `[UNTRANSLATED] All At Once, Steel Path`,
 | 
				
			||||||
    worldState_theCircuitOverride: `[UNTRANSLATED] The Circuit Override`,
 | 
					    worldState_theCircuitOverride: `[UNTRANSLATED] The Circuit Override`,
 | 
				
			||||||
 | 
					    worldState_darvoStockMultiplier: `[UNTRANSLATED] Darvo Stock Multiplier`,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    import_importNote: `Import manuel. Toutes les modifcations supportées par l'inventaire <b>écraseront celles présentes dans la base de données</b>.`,
 | 
					    import_importNote: `Import manuel. Toutes les modifcations supportées par l'inventaire <b>écraseront celles présentes dans la base de données</b>.`,
 | 
				
			||||||
    import_submit: `Soumettre`,
 | 
					    import_submit: `Soumettre`,
 | 
				
			||||||
 | 
				
			|||||||
@ -232,6 +232,7 @@ dict = {
 | 
				
			|||||||
    worldState_allAtOnceNormal: `[UNTRANSLATED] All At Once, Normal`,
 | 
					    worldState_allAtOnceNormal: `[UNTRANSLATED] All At Once, Normal`,
 | 
				
			||||||
    worldState_allAtOnceSteelPath: `[UNTRANSLATED] All At Once, Steel Path`,
 | 
					    worldState_allAtOnceSteelPath: `[UNTRANSLATED] All At Once, Steel Path`,
 | 
				
			||||||
    worldState_theCircuitOverride: `[UNTRANSLATED] The Circuit Override`,
 | 
					    worldState_theCircuitOverride: `[UNTRANSLATED] The Circuit Override`,
 | 
				
			||||||
 | 
					    worldState_darvoStockMultiplier: `[UNTRANSLATED] Darvo Stock Multiplier`,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    import_importNote: `Вы можете загрузить полный или частичный ответ инвентаря (клиентское представление) здесь. Все поддерживаемые поля <b>будут перезаписаны</b> в вашем аккаунте.`,
 | 
					    import_importNote: `Вы можете загрузить полный или частичный ответ инвентаря (клиентское представление) здесь. Все поддерживаемые поля <b>будут перезаписаны</b> в вашем аккаунте.`,
 | 
				
			||||||
    import_submit: `Отправить`,
 | 
					    import_submit: `Отправить`,
 | 
				
			||||||
 | 
				
			|||||||
@ -232,6 +232,7 @@ dict = {
 | 
				
			|||||||
    worldState_allAtOnceNormal: `全部开启(普通)`,
 | 
					    worldState_allAtOnceNormal: `全部开启(普通)`,
 | 
				
			||||||
    worldState_allAtOnceSteelPath: `全部开启(钢铁之路)`,
 | 
					    worldState_allAtOnceSteelPath: `全部开启(钢铁之路)`,
 | 
				
			||||||
    worldState_theCircuitOverride: `[UNTRANSLATED] The Circuit Override`,
 | 
					    worldState_theCircuitOverride: `[UNTRANSLATED] The Circuit Override`,
 | 
				
			||||||
 | 
					    worldState_darvoStockMultiplier: `[UNTRANSLATED] Darvo Stock Multiplier`,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    import_importNote: `您可以在此处提供完整或部分库存响应(客户端表示)。支持的所有字段<b>将被覆盖</b>到您的账户中。`,
 | 
					    import_importNote: `您可以在此处提供完整或部分库存响应(客户端表示)。支持的所有字段<b>将被覆盖</b>到您的账户中。`,
 | 
				
			||||||
    import_submit: `提交`,
 | 
					    import_submit: `提交`,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user