Commit 1caec08 1 parent 7b3ffa2 commit 1caec08 Copy full SHA for 1caec08
File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,11 @@ public void BuyFilterBy() {
197
197
}
198
198
}
199
199
200
+ public void UpdateTextColor ( ) {
201
+
202
+ itemInputField . textComponent . color = Color . white ;
203
+ }
204
+
200
205
/// <summary>
201
206
///
202
207
/// </summary>
@@ -210,11 +215,16 @@ public void UpdateItemName(string _name) {
210
215
//_itemID = // cast from DB..
211
216
212
217
_itemID = DatabaseProvider . GetItemID ( _itemNameStr ) ;
213
-
218
+
214
219
if ( _itemID == - 1 ) {
215
- itemInputField . text = "<color=red>" + itemInputField . text + "</color>" ;
220
+ itemInputField . textComponent . color = Color . red ;
216
221
return ;
217
222
}
223
+ else {
224
+ itemInputField . textComponent . color = Color . white ;
225
+ }
226
+
227
+ //itemInputField.text = itemInputField.text;
218
228
219
229
StartCoroutine ( DoRequestSellOrders ( ) ) ;
220
230
StartCoroutine ( DoRequestBuyOrders ( ) ) ;
You can’t perform that action at this time.
0 commit comments