Finish up the introduction and login interface, changes all pin to proper six digits. WIP stubs for other screens.

This commit is contained in:
variableundefined
2020-10-30 17:23:36 -04:00
parent 3b95c80c72
commit 451c9fdd1d
3 changed files with 150 additions and 26 deletions
+5 -5
View File
@@ -7,7 +7,7 @@ log transactions
*/
#define NO_SCREEN 0
#define DEFAULT_SCREEN 0
#define CHANGE_SECURITY_LEVEL 1
#define TRANSFER_FUNDS 2
#define VIEW_TRANSACTION_LOGS 3
@@ -31,7 +31,7 @@ log transactions
var/machine_id = ""
var/obj/item/card/held_card
var/editing_security_level = 0
var/view_screen = NO_SCREEN
var/view_screen = DEFAULT_SCREEN
var/lastprint = 0 // Printer needs time to cooldown
/obj/machinery/atm/New()
@@ -124,7 +124,7 @@ log transactions
user.set_machine(src)
ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open)
if (!ui)
ui = new(user, src, ui_key, "atm.tmpl", name, 550, 650)
ui = new(user, src, ui_key, "ATM", name, 550, 650)
ui.open()
/obj/machinery/atm/tgui_data(mob/user)
@@ -174,7 +174,7 @@ log transactions
to_chat(usr, "[bicon(src)]<span class='warning'>You don't have enough funds to do that!</span>")
if("view_screen")
view_screen = text2num(params("view_screen"))
view_screen = text2num(params["view_screen"])
if("change_security_level")
if(authenticated_account)
@@ -218,7 +218,7 @@ log transactions
else
playsound(src, 'sound/machines/twobeep.ogg', 50, 1)
ticks_left_timeout = 120
view_screen = NO_SCREEN
view_screen = DEFAULT_SCREEN
//create a transaction log entry
var/datum/transaction/T = new()
+3 -3
View File
@@ -19,7 +19,7 @@ GLOBAL_LIST_EMPTY(all_money_accounts)
GLOB.station_account = new()
GLOB.station_account.owner_name = "[station_name()] Station Account"
GLOB.station_account.account_number = rand(111111, 999999)
GLOB.station_account.remote_access_pin = rand(1111, 111111)
GLOB.station_account.remote_access_pin = rand(111111, 999999)
GLOB.station_account.money = STATION_START_CASH
//create an entry in the account transaction log for when it was created
@@ -35,7 +35,7 @@ GLOBAL_LIST_EMPTY(all_money_accounts)
var/datum/money_account/department_account = new()
department_account.owner_name = "[department] Account"
department_account.account_number = rand(111111, 999999)
department_account.remote_access_pin = rand(1111, 111111)
department_account.remote_access_pin = rand(111111, 999999)
department_account.money = DEPARTMENT_START_CASH
//create an entry in the account transaction log for when it was created
@@ -55,7 +55,7 @@ GLOBAL_LIST_EMPTY(all_money_accounts)
//create a new account
var/datum/money_account/M = new()
M.owner_name = new_owner_name
M.remote_access_pin = rand(1111, 111111)
M.remote_access_pin = rand(111111, 999999)
M.money = starting_funds
//create an entry in the account transaction log for when it was created