write shit
This commit is contained in:
@ -87,7 +87,7 @@ namespace BallanceTASEditor.UI {
|
||||
if (mMode == ToolMode.Fill) throw new Exception("Read with wrong mode.");
|
||||
if (!mIsStartConfirmed) throw new Exception("Data is not ready to read");
|
||||
|
||||
if (mMode == ToolMode.Cursor) return mStart;
|
||||
if (mMode == ToolMode.Overwrite) return mStart;
|
||||
else {
|
||||
// cursor mode
|
||||
if (mIsStartConfirmed) return mStart;
|
||||
@ -95,6 +95,13 @@ namespace BallanceTASEditor.UI {
|
||||
}
|
||||
}
|
||||
|
||||
public FrameDataField GetPointField() {
|
||||
if (mMode != ToolMode.Overwrite) throw new Exception("Read with wrong mode.");
|
||||
if (!mIsStartConfirmed) throw new Exception("Data is not ready to read");
|
||||
|
||||
return mStartField;
|
||||
}
|
||||
|
||||
public bool IsDataReady() {
|
||||
switch (mMode) {
|
||||
case ToolMode.Cursor:
|
||||
|
||||
Reference in New Issue
Block a user