Extracts colors to separate files.

This commit is contained in:
2023-03-11 09:29:22 -08:00
parent dc755c7387
commit 53b0de7079
3 changed files with 35 additions and 32 deletions

21
dos/sbf/colors.bi Normal file
View File

@@ -0,0 +1,21 @@
Const COLOR_DARK_BLACK = 0
Const COLOR_DARK_BLUE = 1
Const COLOR_DARK_GREEN = 2
Const COLOR_DARK_CYAN = 3
Const COLOR_DARK_RED = 4
Const COLOR_DARK_MAGENTA = 5
Const COLOR_DARK_ORANGE = 6
Const COLOR_DARK_YELLOW = 6
Const COLOR_DARK_WHITE = 7
Const COLOR_BRIGHT_BLACK = 8
Const COLOR_BRIGHT_BLUE = 9
Const COLOR_BRIGHT_GREEN = 10
Const COLOR_BRIGHT_CYAN = 11
Const COLOR_BRIGHT_RED = 12
Const COLOR_BRIGHT_MAGENTA = 13
Const COLOR_BRIGHT_ORANGE = 14
Const COLOR_BRIGHT_YELLOW = 14
Const COLOR_BRIGHT_WHITE = 15
Dim Shared ScreenColor As Integer
ScreenColor = COLOR_DARK_WHITE

9
dos/sbf/colors.bm Normal file
View File

@@ -0,0 +1,9 @@
Sub SetColor (c As Integer)
ScreenColor = c
Color c
End Sub
Function GetColor ()
GetColor = ScreenColor
End Function

View File

@@ -33,6 +33,8 @@ Const CLAN_VENTRUE = 18
Const CLANS_COUNT = 18 Const CLANS_COUNT = 18
Dim Shared Clans(1 To CLANS_COUNT) As String Dim Shared Clans(1 To CLANS_COUNT) As String
'$include: 'colors.bi'
Const ARCHETYPE_ARCHITECT = 1 Const ARCHETYPE_ARCHITECT = 1
Const ARCHETYPE_AUTOCRAT = 2 Const ARCHETYPE_AUTOCRAT = 2
Const ARCHETYPE_BARBARIAN = 3 Const ARCHETYPE_BARBARIAN = 3
@@ -194,25 +196,6 @@ Const GENDER_NON_BINARY = 5
Const GENDERS_COUNT = 5 Const GENDERS_COUNT = 5
Dim Shared Genders(1 To GENDERS_COUNT) As String Dim Shared Genders(1 To GENDERS_COUNT) As String
Const COLOR_DARK_BLACK = 0
Const COLOR_DARK_BLUE = 1
Const COLOR_DARK_GREEN = 2
Const COLOR_DARK_CYAN = 3
Const COLOR_DARK_RED = 4
Const COLOR_DARK_MAGENTA = 5
Const COLOR_DARK_ORANGE = 6
Const COLOR_DARK_YELLOW = 6
Const COLOR_DARK_WHITE = 7
Const COLOR_BRIGHT_BLACK = 8
Const COLOR_BRIGHT_BLUE = 9
Const COLOR_BRIGHT_GREEN = 10
Const COLOR_BRIGHT_CYAN = 11
Const COLOR_BRIGHT_RED = 12
Const COLOR_BRIGHT_MAGENTA = 13
Const COLOR_BRIGHT_ORANGE = 14
Const COLOR_BRIGHT_YELLOW = 14
Const COLOR_BRIGHT_WHITE = 15
Const DERANGEMENTS_COUNT = 10 Const DERANGEMENTS_COUNT = 10
Const DERANGEMENT_ID_AMNESIA = 1 Const DERANGEMENT_ID_AMNESIA = 1
Const DERANGEMENT_ID_DELUSIONS_OF_GRANDEUR = 2 Const DERANGEMENT_ID_DELUSIONS_OF_GRANDEUR = 2
@@ -251,9 +234,6 @@ Const DERANGEMENT_DESCRIPTION_PARANOIA = "You are convinced that you are being h
Const DERANGEMENT_DESCRIPTION_PERFECTION = "All your energy is directed toward preventing anything from going wong. When it does you must make a self-control roll or frenzy." Const DERANGEMENT_DESCRIPTION_PERFECTION = "All your energy is directed toward preventing anything from going wong. When it does you must make a self-control roll or frenzy."
Const DERANGEMENT_DESCRIPTION_REGRESSION = "You become childlike retreating to an earlier time when less was expected of you Willpower is regained inthe way a Child's is." Const DERANGEMENT_DESCRIPTION_REGRESSION = "You become childlike retreating to an earlier time when less was expected of you Willpower is regained inthe way a Child's is."
Dim Shared ScreenColor As Integer
ScreenColor = COLOR_DARK_WHITE
Type CharacterType Type CharacterType
name As String name As String
player As String player As String
@@ -1522,15 +1502,6 @@ Sub CGGetDerangement (ch As CharacterType)
End If End If
End Sub End Sub
Sub SetColor (c As Integer)
ScreenColor = c
Color c
End Sub
Function GetColor ()
GetColor = ScreenColor
End Function
Sub CGSpendFreebiePoints (ch As CharacterType) Sub CGSpendFreebiePoints (ch As CharacterType)
End Sub End Sub
@@ -1913,7 +1884,7 @@ Sub FillAttributesInGroup (group As Integer, attributes() As String)
Case ATTRIBUTE_GROUP_MENTAL Case ATTRIBUTE_GROUP_MENTAL
For i = 1 To count For i = 1 To count
attributes(i) = MentalAttributes(i) attributes(i) = MentalAttributes(i)
Next f Next
End Select End Select
End Sub End Sub
@@ -2206,6 +2177,8 @@ Sub MakeWrapLines (lines() As String, text As String, maxWidth As Integer, maxLi
Wend Wend
End Sub End Sub
'$include: 'colors.bm'
Sub Test Sub Test
'End 'End
End Sub End Sub