Closed 1sra3l closed 2 years ago
FLUID creates an OFLAT_BOX which now generates an OFlatBox.
@MoAlyousef one more issue here the "down_box"
"down_box" => {
if let Some(p) = props.get(i.wrapping_sub(1)) {
if p != "label" {
let temp =
utils::global_to_pascal(utils::unbracket(&props[i + 1]));
let temp = match temp.as_str() {
"OflatBox" => "OFlatBox",
"OshadowBox" => "OShadowBox",
"RflatBox" => "RFlatBox",
"RshadowBox" => "RShadowBox",
_ => temp.as_str(),
};
imp += &format!(
"\t{}.set_down_frame(FrameType::{});\n",
&elem.ident, temp,
);
}
} else {
let temp = utils::global_to_pascal(utils::unbracket(&props[i + 1]));
let temp = match temp.as_str() {
"OflatBox" => "OFlatBox",
"OshadowBox" => "OShadowBox",
"RflatBox" => "RFlatBox",
"RshadowBox" => "RShadowBox",
_ => temp.as_str(),
};
imp += &format!(
"\t{}.set_down_frame(FrameType::{});\n",
&elem.ident, temp,
);
}
}
Oops. I’ll add it when I get home.
This should be now fixed in 0.4.15 :)
https://github.com/fltk-rs/fl2rust/blob/62e26384b84fb7a782fd4a30093cfb9c611bdec0/src/utils.rs#L51
Is this where the word is interpreted?