mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-24 21:48:35 +01:00
cleaned up preprocessor instructions
This commit is contained in:
parent
e229432d0f
commit
14d0b24aa9
40 changed files with 119 additions and 117 deletions
|
@ -87,8 +87,9 @@ resharper_indent_nested_for_stmt = true
|
|||
resharper_indent_nested_lock_stmt = true
|
||||
resharper_indent_nested_usings_stmt = true
|
||||
resharper_indent_nested_while_stmt = true
|
||||
resharper_indent_preprocessor_if = usual_indent
|
||||
resharper_indent_preprocessor_other = usual_indent
|
||||
resharper_indent_preprocessor_if = no_indent
|
||||
resharper_indent_preprocessor_other = no_indent
|
||||
resharper_indent_preprocessor_region = no_indent
|
||||
resharper_keep_existing_declaration_parens_arrangement = false
|
||||
resharper_keep_existing_embedded_arrangement = false
|
||||
resharper_keep_existing_expr_member_arrangement = false
|
||||
|
|
|
@ -10,6 +10,7 @@ using MLEM.Ui.Style;
|
|||
|
||||
#if NETSTANDARD2_0_OR_GREATER || NET6_0_OR_GREATER
|
||||
using System.Net.Http;
|
||||
|
||||
#else
|
||||
using System.Net;
|
||||
#endif
|
||||
|
|
|
@ -360,7 +360,7 @@ namespace MLEM.Font {
|
|||
var total = new StringBuilder();
|
||||
var extraWidth = 0F;
|
||||
var endReached = false;
|
||||
foreach (var part in (fromBack ? text.Reverse() : text)) {
|
||||
foreach (var part in fromBack ? text.Reverse() : text) {
|
||||
var curr = new StringBuilder();
|
||||
// if we reached the end previously, all the other parts should just be empty
|
||||
if (!endReached) {
|
||||
|
|
|
@ -274,8 +274,8 @@ namespace MLEM.Input {
|
|||
public void Update(GameTime time, InputHandler input) {
|
||||
this.UpdateTextDataIfDirty();
|
||||
|
||||
// FNA's text input event doesn't supply keys, so we handle this here
|
||||
#if FNA
|
||||
// FNA's text input event doesn't supply keys, so we handle this here
|
||||
if (this.CaretPos > 0 && input.TryConsumePressed(Keys.Back)) {
|
||||
this.CaretPos--;
|
||||
this.RemoveText(this.CaretPos, 1);
|
||||
|
|
Loading…
Reference in a new issue